FPSMS-frontend
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

27 linhas
687 B

  1. import { fetchAllItems, } from "@/app/api/settings/item";
  2. import ItemsSearch from "./ItemsSearch";
  3. import ItemsSearchLoading from "./ItemsSearchLoading";
  4. import { SearchParams } from "@/app/utils/fetchUtil";
  5. import { TypeEnum } from "@/app/utils/typeEnum";
  6. import { notFound } from "next/navigation";
  7. interface SubComponents {
  8. Loading: typeof ItemsSearchLoading;
  9. }
  10. type Props = {
  11. // type: TypeEnum;
  12. };
  13. const ItemsSearchWrapper: React.FC<Props> & SubComponents = async ({
  14. // type,
  15. }) => {
  16. // console.log(type)
  17. var result = await fetchAllItems()
  18. return <ItemsSearch items={result} />;
  19. };
  20. ItemsSearchWrapper.Loading = ItemsSearchLoading;
  21. export default ItemsSearchWrapper;