UNPKG

@shopify/shop-minis-react

Version:

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

19 lines (18 loc) 458 B
import { useShopActions as p } from "../../internal/useShopActions.js"; import { useShopActionQuery as n } from "../../internal/reactQuery/useShopActionQuery.js"; const a = (r) => { const { getProduct: s } = p(), { id: t, skip: c = !1, ...o } = r, { data: e, ...u } = n( ["product", t, o], s, { id: t, ...o }, { skip: c } ); return { ...u, product: e }; }; export { a as useProduct }; //# sourceMappingURL=useProduct.js.map