UNPKG

@shopify/shop-minis-react

Version:

React component library for Shopify Shop Minis with Tailwind CSS v4 support (source-only, requires TypeScript)

22 lines (21 loc) 560 B
import { useMemo as p } from "react"; import { useShopActions as a } from "../../internal/useShopActions.js"; import { useShopActionsPaginatedDataFetching as h } from "../../internal/useShopActionsPaginatedDataFetching.js"; const S = (t) => { const { getRecentShops: s } = a(), { skip: e = !1, ...n } = t ?? {}, { data: o, ...r } = h( s, n, { skip: e, hook: "useRecentShops" } ), c = p(() => o ?? null, [o]); return { ...r, shops: c }; }; export { S as useRecentShops }; //# sourceMappingURL=useRecentShops.js.map