import { SearchParams } from "@/app/utils/fetchUtil";
import { TypeEnum } from "@/app/utils/typeEnum";
import CreateItem from "@/components/CreateItem";
import { I18nProvider, getServerI18n } from "@/i18n";
import { Typography } from "@mui/material";
import isString from "lodash/isString";

type Props = {} & SearchParams;

const materialSetting: React.FC<Props> = async ({ searchParams }) => {
  // const type = TypeEnum.PRODUCT;
  const { t } = await getServerI18n("items");
  return (
    <>
      {/* <Typography variant="h4">{t("Create Material")}</Typography> */}
      <I18nProvider namespaces={["items","navigation","common"]}>
        <CreateItem />
      </I18nProvider>
    </>
  );
};
export default materialSetting;
