import { fetchAllEquipmentTypes } from "@/app/api/settings/equipmentType";
import EquipmentTypeSearchLoading from "./EquipmentTypeSearchLoading";
import { SearchParams } from "@/app/utils/fetchUtil";
import { TypeEnum } from "@/app/utils/typeEnum";
import { notFound } from "next/navigation";
import EquipmentTypeSearch from "./EquipmentTypeSearch";

interface SubComponents {
  Loading: typeof EquipmentTypeSearchLoading;
}

type Props = {
  // type: TypeEnum;
};

const EquipmentTypeSearchWrapper: React.FC<Props> & SubComponents = async (
  {
    // type,
  },
) => {
  // console.log(type)
  // var result = await fetchAllEquipmentTypes()
  return <EquipmentTypeSearch equipmentTypes={[]} />;
};

EquipmentTypeSearchWrapper.Loading = EquipmentTypeSearchLoading;

export default EquipmentTypeSearchWrapper;
