FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
615 B

  1. import { I18nProvider, getServerI18n } from "@/i18n";
  2. import { Typography } from "@mui/material";
  3. import { Suspense } from "react";
  4. import CreatePrinter from "@/components/CreatePrinter";
  5. const CreatePrinterPage: React.FC = async () => {
  6. const { t } = await getServerI18n("common");
  7. return (
  8. <>
  9. <Typography variant="h4">{t("Create Printer") || "新增列印機"}</Typography>
  10. <I18nProvider namespaces={["common"]}>
  11. <Suspense fallback={<CreatePrinter.Loading />}>
  12. <CreatePrinter />
  13. </Suspense>
  14. </I18nProvider>
  15. </>
  16. );
  17. };
  18. export default CreatePrinterPage;