

import { Tabs, TabsProps } from "antd";
import ArchivesCat from "./archivesCat";
import ArchivesFolder from "./archivesFolder";
// import Archive from "./archive";


const ArchiveBox = () => {
  const onChange = (key: string) => {
    console.log(key);
  };
  const items: TabsProps["items"] = [
    {
      key: "1",
      label: "档案类别管理",
      children: <ArchivesCat />,
    },
    {
      key: "2",
      label: "档案文件夹管理",
      children: <ArchivesFolder />,
    },
  ];
  return (
    <>
      <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
    </>
  );
};

export default ArchiveBox;