|
12345678910111213141516171819202122 |
- 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("common");
-
- return (
- <>
- <Typography variant="h4">{t("Create Printer") || "新增列印機"}</Typography>
- <I18nProvider namespaces={["common"]}>
- <Suspense fallback={<CreatePrinter.Loading />}>
- <CreatePrinter />
- </Suspense>
- </I18nProvider>
- </>
- );
- };
-
- export default CreatePrinterPage;
-
|