You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import React from "react";
- import WarehouseHandle from "./WarehouseHandle";
- import WarehouseHandleLoading from "./WarehouseHandleLoading";
- import { WarehouseResult, fetchWarehouseList } from "@/app/api/warehouse";
-
- interface SubComponents {
- Loading: typeof WarehouseHandleLoading;
- }
-
- const WarehouseHandleWrapper: React.FC & SubComponents = async () => {
- const warehouses = await fetchWarehouseList();
- console.log(warehouses);
-
- return <WarehouseHandle warehouses={warehouses} />;
- };
-
- WarehouseHandleWrapper.Loading = WarehouseHandleLoading;
-
- export default WarehouseHandleWrapper;
|