import { Metadata } from "next";
import { I18nProvider } from "@/i18n";
import ImportBomWrapper from "@/components/ImportBom/ImportBomWrapper";
import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";

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

export default async function ImportBomPage() {
    return (
        <>
            <Stack
                direction="row"
                justifyContent="space-between"
                flexWrap="wrap"
                rowGap={2}
            >
                <Typography variant="h4" marginInlineEnd={2}>
                    Import BOM
                </Typography>
            </Stack>
            <I18nProvider namespaces={["common"]}>
                <ImportBomWrapper />
            </I18nProvider>
        </>
    );
}
