()
| 32 | const ContextContext = createContext<ContextSchema | null>(null); |
| 33 | |
| 34 | const useContextValue = () => { |
| 35 | const context = useContext(ContextContext); |
| 36 | |
| 37 | if (!context) { |
| 38 | throw new Error("Context components must be used within Context"); |
| 39 | } |
| 40 | |
| 41 | return context; |
| 42 | }; |
| 43 | |
| 44 | export type ContextProps = ComponentProps<typeof HoverCard> & ContextSchema; |
| 45 |
no outgoing calls
no test coverage detected