import { useMemo as i } from "react";
import { parseUrl as n } from "../../utils/parseUrl.js";
const m = () => {
  const { initialUrl: r, handle: e } = window.minisParams;
  return i(() => {
    if (!r)
      return {
        path: void 0,
        queryParams: void 0,
        hash: void 0
      };
    const a = n(r), t = `/mini/${e}`;
    return {
      path: a.pathname.startsWith(t) ? a.pathname.replace(t, "") : a.pathname,
      queryParams: a.query,
      hash: a.hash
    };
  }, [e, r]);
};
export {
  m as useDeeplink
};
//# sourceMappingURL=useDeeplink.js.map
