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