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

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

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

  // Preload necessary dependencies

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

export default Positions;