(selection: Selection)
| 91 | * so the selection color tracks the theme live. |
| 92 | */ |
| 93 | export function useSelectionBgColor(selection: Selection): void { |
| 94 | const [themeName] = useTheme() |
| 95 | useEffect(() => { |
| 96 | selection.setSelectionBgColor(getTheme(themeName).selectionBg) |
| 97 | }, [selection, themeName]) |
| 98 | } |
| 99 |
no test coverage detected