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

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

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

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

export default EditSubsidiary;
