()
| 39 | const PopperContenxt = React.createContext<PopperContextValue>(null as any) |
| 40 | |
| 41 | const usePopperContext = () => { |
| 42 | const context = React.useContext(PopperContenxt) |
| 43 | if (!context) |
| 44 | throw new Error(`[usePopperContext] must be used within a ${POPPER_NAME} component.`) |
| 45 | |
| 46 | return context |
| 47 | } |
| 48 | |
| 49 | interface PopperProps { |
| 50 | children?: React.ReactNode |
no outgoing calls
no test coverage detected
searching dependent graphs…