import { MyPageContainer } from '@/common';
import { Tabs, TabsProps } from 'antd';
import AdminRole from './components/AdminRole';
import EmployeeRole from './components/EmployeeRole';
export default function Index({ title = '角色' }) {
  const items: TabsProps['items'] = [
    {
      key: '1',
      label: '后台角色',
      children: <AdminRole />,
    },
    {
      key: '2',
      label: '员工角色',
      children: <EmployeeRole />,
    },
  ];

  return (
    <MyPageContainer
      title={title}
      enableTabs={true}
      tabKey="system-roles"
      tabLabel={title}
    >
      <Tabs defaultActiveKey="1" type="card" items={items} />
    </MyPageContainer>
  );
}
