import{a}from"./vendor-query-B2UbickB.js";function p(r){const[n,o]=a.useState(()=>{try{const e=localStorage.getItem(r);if(e){const s=JSON.parse(e);if(Array.isArray(s))return new Set(s)}}catch{}return new Set}),c=a.useCallback(e=>{try{localStorage.setItem(r,JSON.stringify([...e]))}catch{}},[r]),l=a.useCallback(e=>{o(s=>{const t=new Set(s);return t.has(e)?t.delete(e):t.add(e),c(t),t})},[c]),d=a.useCallback(e=>n.has(e),[n]);return{expandedIds:n,toggle:l,isExpanded:d}}export{p as u};
//# sourceMappingURL=useExpandedRows-CkcEntB-.js.map
