UNPKG

@shopify/shop-minis-react

Version:

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

24 lines (23 loc) 484 B
import { useMemo as e } from "react"; import { parseUrl as s } from "../../utils/parseUrl.js"; const t = () => { const { initialUrl: r } = window.minisParams; return e(() => { if (!r) return { path: void 0, queryParams: void 0, hash: void 0 }; const a = s(r); return { path: a.pathname, queryParams: a.query, hash: a.hash }; }, [r]); }; export { t as useDeeplink }; //# sourceMappingURL=useDeeplink.js.map