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

interface SubComponents {
    Loading: typeof GeneralLoading;
}

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

    return <PutAwayScan warehouse={warehouse}/>
}

PutAwayScanWrapper.Loading = GeneralLoading;

export default PutAwayScanWrapper;