|
- import { fetchAllItems, } from "@/app/api/settings/item";
- import ItemsSearch from "./ItemsSearch";
- import ItemsSearchLoading from "./ItemsSearchLoading";
- import { SearchParams } from "@/app/utils/fetchUtil";
- import { TypeEnum } from "@/app/utils/typeEnum";
- import { notFound } from "next/navigation";
-
- interface SubComponents {
- Loading: typeof ItemsSearchLoading;
- }
-
- type Props = {
- // type: TypeEnum;
- };
-
- const ItemsSearchWrapper: React.FC<Props> & SubComponents = async ({
- // type,
- }) => {
- // console.log(type)
- var result = await fetchAllItems()
- return <ItemsSearch items={result} />;
- };
-
- ItemsSearchWrapper.Loading = ItemsSearchLoading;
-
- export default ItemsSearchWrapper;
|