()
| 188 | const PopoverContext = React.createContext<PopoverContextValue | null>(null) |
| 189 | |
| 190 | const usePopoverContext = () => { |
| 191 | const context = React.useContext(PopoverContext) |
| 192 | if (!context) { |
| 193 | throw new Error('Popover components must be used within a Popover') |
| 194 | } |
| 195 | return context |
| 196 | } |
| 197 | |
| 198 | export interface PopoverProps extends PopoverPrimitive.PopoverProps { |
| 199 | /** |
no outgoing calls
no test coverage detected