import CreateDepartment from "@/components/CreateDepartment";
import { I18nProvider, getServerI18n } from "@/i18n";
import Typography from "@mui/material/Typography";
import { Metadata } from "next";

export const metadata: Metadata = {
  title: "Create Department",
};

const Department: React.FC = async () => {
  const { t } = await getServerI18n("departments");

  // Preload necessary dependencies

  return (
    <>
      <Typography variant="h4">{t("Create Department")}</Typography>
      <I18nProvider namespaces={["departments"]}>
        <CreateDepartment isEdit={false} />
      </I18nProvider>
    </>
  );
};

export default Department;
