import React from 'react'
import BaseHeader from './index'
import Breadcrumbs from '@platformuiserver/platformui.breadcrumbs'
import { Button } from 'antd'
const handleBtn = (text) => {
  console.log(text)
}
export const BasicBaseHeader = () => (
  <div style={{ width: '100%', border: '5px solid #e8e8e8' }}>
    <BaseHeader
      text={
        <Breadcrumbs
          breadcrumbList={[
            {
              link: 'path',
              key: 'metadata',
              name: '名称',
              back: () => {
                console.log('回调函数')
              }
            },
            {
              key: 'metadata2',
              name: '名称'
            },
            {
              key: 'metadata3',
              name: '名称'
            }
          ]}
        />
      }
      handleBtn={
        <div>
          <Button style={{ marginRight: '10px' }}>取 消</Button>
          <Button type="primary">保 存</Button>
        </div>
      }
    />
  </div>
)
