()
| 24 | } |
| 25 | |
| 26 | export function useDiffModeContext() { |
| 27 | return ( |
| 28 | useContext(DiffModeContext) ?? |
| 29 | throwExp('useDiffModeContext: cannot find a DiffModeContext') |
| 30 | ) |
| 31 | } |
| 32 | |
| 33 | export const DiffModeToggleGroup: VoidComponent = () => { |
| 34 | const [diffMode, setDiffMode] = useDiffModeContext() |
no test coverage detected