From fdb7b2357a6f025bc5d2ec0a8803142015fb2500 Mon Sep 17 00:00:00 2001 From: ditiqi Date: Wed, 5 Mar 2025 21:36:07 +0800 Subject: [PATCH] add --- apps/web/src/components/test/StaffList.tsx | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 apps/web/src/components/test/StaffList.tsx diff --git a/apps/web/src/components/test/StaffList.tsx b/apps/web/src/components/test/StaffList.tsx new file mode 100644 index 0000000..b418bdc --- /dev/null +++ b/apps/web/src/components/test/StaffList.tsx @@ -0,0 +1,6 @@ +import { api } from "packages/client/dist"; +import { ReactNode } from "react"; +export default function StaffList({ renderItem }: { renderItem: ReactNode }) { + const { data } = api.staff.findManyWithPagination.useQuery({}); + data.items.map((staff) => renderItem); +}