1import{j as o}from"./vendor-radix-primitives-B70V19yX.js";import{a as r}from"./vendor-react-DcdsEcWn.js";const e=r.createContext(null);function n({children:n}){const[t,s]=r.useState(null),i=r.useCallback(o=>{s(o)},[]),a=r.useCallback(()=>{s(null)},[]),l=r.useCallback(o=>t===o,[t]);return o.jsx(e.Provider,{value:{activeDropdown:t,openDropdown:i,closeDropdown:a,isDropdownOpen:l},children:n})}function t(){const o=r.useContext(e);if(!o)throw new Error("useDropdown must be used within a DropdownProvider");return o}export{n as DropdownProvider,t as useDropdown};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.