//import { fetchPickOrders } from "@/app/api/pickOrder";
import GeneralLoading from "../General/GeneralLoading";
import PickOrderSearch from "./PickOrderSearch";

interface SubComponents {
  Loading: typeof GeneralLoading;
}

const PickOrderSearchWrapper: React.FC & SubComponents = async () => {
  /*
  const [pickOrders] = await Promise.all([
    fetchPickOrders({
      code: undefined,
      targetDateFrom: undefined,
      targetDateTo: undefined,
      type: undefined,
      status: undefined,
      itemName: undefined,
    }),
  ]);
  */
  //const pickOrders = [];
  //return <PickOrderSearch pickOrders={pickOrders} />;
  return <PickOrderSearch />;
};

PickOrderSearchWrapper.Loading = GeneralLoading;

export default PickOrderSearchWrapper;
