import { I18nProvider, getServerI18n } from "@/i18n";
import { Typography } from "@mui/material";
import { Suspense } from "react";
import CreatePrinter from "@/components/CreatePrinter";

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

  return (
    <>
      <Typography variant="h4">{t("Create Printer") || "新增列印機"}</Typography>
      <I18nProvider namespaces={["printer","navigation","common"]}>
        <Suspense fallback={<CreatePrinter.Loading />}>
          <CreatePrinter />
        </Suspense>
      </I18nProvider>
    </>
  );
};

export default CreatePrinterPage;

