()
| 132 | const PopperContentContext = React.createContext<PopperContentContextValue>({} as any) |
| 133 | |
| 134 | const useContentContext = () => { |
| 135 | const context = React.useContext(PopperContentContext) |
| 136 | if (!context) |
| 137 | throw new Error(`[usePopperContentContext] must be used within a ${CONTENT_NAME} component.`) |
| 138 | |
| 139 | return context |
| 140 | } |
| 141 | |
| 142 | type PositionContextValue = { |
| 143 | hasParent: false |
no outgoing calls
no test coverage detected
searching dependent graphs…