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

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

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

  return (
    <>
      <Typography variant="h4">{t("Create Subsidiary")}</Typography>
      <I18nProvider namespaces={["subsidiary", "common"]}>
          <SubsidiaryDetail />
      </I18nProvider>
    </>
  );
};

export default CreateSubsidiary;
