import { Metadata } from "next";
import { getServerI18n } from "@/i18n";
import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import { Suspense } from "react";
import ExcelFileImport from "@/components/ExcelFileImport";

export const metadata: Metadata = {
    title: "Excel File Import",
};

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

    return (
        <>
            <Stack
                direction="row"
                justifyContent="space-between"
                flexWrap="wrap"
                rowGap={2}
            >
                <Typography variant="h4" marginInlineEnd={2}>
                    {t("Excel File Import")}
                </Typography>
            </Stack>
            <Suspense>
                <ExcelFileImport />
            </Suspense>
        </>
    )
};

export default Import;
