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

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

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

  return (
    <>
      <Typography variant="h4">{t("Create Claim")}</Typography>
      <I18nProvider namespaces={["claim", "common"]}>
        <ClaimSave />
      </I18nProvider>
    </>
  );
};

export default ClaimDetails;
