import { SearchParams } from "@/app/utils/fetchUtil";
import { TypeEnum } from "@/app/utils/typeEnum";
import CreateEquipmentType from "@/components/CreateEquipment";
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("common");
  return (
    <>
      {/* <Typography variant="h4">{t("Create Material")}</Typography> */}
      <I18nProvider namespaces={["importBom","navigation","common"]}>
        <CreateEquipmentType />
      </I18nProvider>
    </>
  );
};
export default materialSetting;
