UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

12 lines (11 loc) 274 B
import { useContext as t } from "react"; import { DropdownContext as r } from "./dropdown.context.js"; const s = () => { const o = t(r); if (!o) throw new Error("useTheme must be used within a DropdownProvider"); return o; }; export { s as useDropdownContext };