(props: ParentProps<{ component: ValidComponent }>)
| 3 | const DiffComponentContext = createContext<ValidComponent>() |
| 4 | |
| 5 | export function DiffComponentProvider(props: ParentProps<{ component: ValidComponent }>) { |
| 6 | return <DiffComponentContext.Provider value={props.component}>{props.children}</DiffComponentContext.Provider> |
| 7 | } |
| 8 | |
| 9 | export function useDiffComponent() { |
| 10 | const component = useContext(DiffComponentContext) |
nothing calls this directly
no outgoing calls
no test coverage detected