UNPKG

@shopify/shop-minis-react

Version:

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

18 lines (17 loc) 505 B
import { useMemo as n } from "react"; import { useShopActions as m } from "../../internal/useShopActions.js"; import { useShopActionsDataFetching as p } from "../../internal/useShopActionsDataFetching.js"; const f = (t) => { const { getProducts: s } = m(), { skip: r = !1, ...e } = t, { data: o, ...c } = p(s, e, { skip: r, hook: "useProducts" }), u = n(() => o ?? null, [o]); return { ...c, products: u }; }; export { f as useProducts }; //# sourceMappingURL=useProducts.js.map