import{useMemo}from"react";import{useLocation}from"react-router-dom";import{normalizePath}from"../../utils";export function useIsExpanded({item:e,routingBasePath:o}){const t=useLocation(),r=useMemo((()=>decodeURIComponent(normalizePath(t.pathname.replace(o,"")))),[t.pathname,o]);if("tag"!==e.type)return!1;return[e.href,...e.items.map((e=>e.href))].some((e=>[e,decodeURIComponent(e)].includes(r)))}
//# sourceMappingURL=useIsExpanded.js.map