import { fetchAllEquipments } from "@/app/api/settings/equipment";
import EquipmentSearchLoading from "./EquipmentSearchLoading";
import { SearchParams } from "@/app/utils/fetchUtil";
import { TypeEnum } from "@/app/utils/typeEnum";
import { notFound } from "next/navigation";
import EquipmentSearch from "./EquipmentSearch";

interface SubComponents {
  Loading: typeof EquipmentSearchLoading;
}

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

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

EquipmentSearchWrapper.Loading = EquipmentSearchLoading;

export default EquipmentSearchWrapper;
