All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.console-fe.src.components.Page.PageHeader.tsx Maven / Gradle / Ivy

The newest version!
import React, { PureComponent } from 'react';
import styled, { css } from 'styled-components';
import { Breadcrumb } from '@alicloud/console-components';
import _ from 'lodash';

const PageHeaderWrapper = styled.div`
  margin: 16px 0;
`;

const Title = styled.h3`
  font-size: 28px;
  font-weight: 400;
  margin: 0px;
  margin-top: 16px;
  vertical-align: middle;
`;

export default class PageHeader extends PureComponent {
  render() {
    const { title, breadcrumbs = [], separator = '/' } = this.props;
    return (
      
        
          {_.map(breadcrumbs, ({ link, text }: {link: string, text: string}) => (
            
              {text}
            
          ))}
        
        {title}
      
    );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy