()
| 56 | } |
| 57 | |
| 58 | export function ThemeSwitchIconButton() { |
| 59 | const { iconToUse, iconText, toggleTheme, mounted } = useThemeSwitch() |
| 60 | |
| 61 | return ( |
| 62 | <button |
| 63 | style={{ opacity: mounted ? 1 : 0 }} |
| 64 | onClick={toggleTheme} |
| 65 | aria-label={iconText} |
| 66 | className={switchStyle} |
| 67 | > |
| 68 | <ButtonIcon icon={iconToUse} /> |
| 69 | </button> |
| 70 | ) |
| 71 | } |
nothing calls this directly
no test coverage detected