import CreatePosition from "@/components/CreatePosition";
import { I18nProvider, getServerI18n } from "@/i18n";
import Typography from "@mui/material/Typography";
import { Metadata } from "next";

export const metadata: Metadata = {
  title: "Create Position",
};

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

  // Preload necessary dependencies

  return (
    <>
      <Typography variant="h4">{t("Create Position")}</Typography>
      <I18nProvider namespaces={["positions"]}>
        <CreatePosition />
      </I18nProvider>
    </>
  );
};

export default Positions;