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) 576 B
import { useCallback as n } from "react"; import { getWindowLocationPathname as a } from "../utils/getWindowLocationPathname.js"; import { useHandleAction as c } from "./useHandleAction.js"; import { useShopActions as i } from "./useShopActions.js"; const d = () => { const { reportInteraction: r } = i(), o = c(r); return { reportInteraction: n( (t) => { const e = { ...t, pageValue: t.pageValue || a() }; return o(e); }, [o] ) }; }; export { d as useReportInteraction }; //# sourceMappingURL=useReportInteraction.js.map