UNPKG

@konstructio/ui

Version:

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

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