
import { fetchPrinterCombo } from "@/app/api/settings/printer";
import GeneralLoading from "../General/GeneralLoading";
import JodetailSearch from "./JodetailSearch";

interface SubComponents {
  Loading: typeof GeneralLoading;
}

const JodetailSearchWrapper: React.FC & SubComponents = async () => {
  const [printerCombo] = await Promise.all([
    /*
    fetchPickOrders({
      code: undefined,
      targetDateFrom: undefined,
      targetDateTo: undefined,
      type: undefined,
      status: undefined,
      itemName: undefined,
      pageNum: 0,
      pageSize: 50,
    }),
    */
    fetchPrinterCombo(),
  ]);
  //console.log("%c printerCombo:", "color:green", printerCombo);

  return <JodetailSearch printerCombo={printerCombo} />;
};

JodetailSearchWrapper.Loading = GeneralLoading;

export default JodetailSearchWrapper;