UNPKG

@shopify/shop-minis-react

Version:

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

20 lines (19 loc) 547 B
import { useMemo as u } from "react"; import { useShopActions as i } from "../../internal/useShopActions.js"; import { useShopActionInfiniteQuery as p } from "../../internal/reactQuery/useShopActionInfiniteQuery.js"; const f = (r) => { const { getRecentProducts: e } = i(), { skip: s, ...t } = r ?? {}, { data: o, ...n } = p( ["recentProducts", t], e, t, { skip: s } ), c = u(() => o ?? null, [o]); return { ...n, products: c }; }; export { f as useRecentProducts }; //# sourceMappingURL=useRecentProducts.js.map