import React from "react";
import GeneralLoading from "../General/GeneralLoading";
import PutAwayCamScan from "./PutAwayCamScan";
import { fetchWarehouseList } from "@/app/api/warehouse";

interface SubComponents {
  Loading: typeof GeneralLoading;
}

const PutAwayCamScanWrapper: React.FC & SubComponents = async () => {
  const [warehouse] = await Promise.all([fetchWarehouseList()]);

  return <PutAwayCamScan warehouse={warehouse} />;
};

PutAwayCamScanWrapper.Loading = GeneralLoading;

export default PutAwayCamScanWrapper;

