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) 570 B
import { useMemo as u } from "react"; import { useShopActions as i } from "../../internal/useShopActions.js"; import { useShopActionsPaginatedDataFetching as p } from "../../internal/useShopActionsPaginatedDataFetching.js"; const h = (o) => { const { getRecentProducts: s } = i(), { skip: e, ...r } = o ?? {}, { data: t, ...c } = p( s, r, { skip: e, hook: "useRecentProducts" } ), n = u(() => t ?? null, [t]); return { ...c, products: n }; }; export { h as useRecentProducts }; //# sourceMappingURL=useRecentProducts.js.map