import { useMemo, useState } from "react"; import { Button, Input, Table } from "antd"; import { PlusOutlined } from "@ant-design/icons"; import { useNavigate } from "react-router-dom"; import { PageContainer } from "@/components"; import style from "./index.module.scss"; import { TEMPLATE_TABS } from "./constants"; const { Search } = Input; const TemplatePage = () => { const navigate = useNavigate(); const [tab, setTab] = useState(TEMPLATE_TABS.GRADING); const isGrading = useMemo(() => tab === TEMPLATE_TABS.GRADING, [tab]); const handleTab = (type: TEMPLATE_TABS) => { setTab(type); }; return (
{isGrading ? ( <> ) : ( "" )}
} > ); }; export default TemplatePage;