import { Metadata } from "next";
import { getServerI18n, I18nProvider } from "@/i18n";
import Typography from "@mui/material/Typography";
import { preloadQcItem } from "@/app/api/settings/qcItem";
import QcItemSave from "@/components/QcItemSave";

export const metadata: Metadata = {
  title: "Qc Item",
};

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

  return (
    <>
      <Typography variant="h4" marginInlineEnd={2}>
        {t("Create Qc Item")}
      </Typography>
      <I18nProvider namespaces={["qcItem","navigation","common"]}>
        <QcItemSave />
      </I18nProvider>
    </>
  );
};

export default qcItem;
