()
| 39 | }) |
| 40 | |
| 41 | export function ThemeSwitchButton() { |
| 42 | const { iconToUse, toggleTheme, mounted, iconText } = useThemeSwitch() |
| 43 | |
| 44 | return ( |
| 45 | <button |
| 46 | style={{ opacity: mounted ? 1 : 0 }} |
| 47 | onClick={toggleTheme} |
| 48 | className={switchStyle} |
| 49 | > |
| 50 | <HStack gap="2"> |
| 51 | <span>{iconText} </span> |
| 52 | <ButtonIcon icon={iconToUse} /> |
| 53 | </HStack> |
| 54 | </button> |
| 55 | ) |
| 56 | } |
| 57 | |
| 58 | export function ThemeSwitchIconButton() { |
| 59 | const { iconToUse, iconText, toggleTheme, mounted } = useThemeSwitch() |
nothing calls this directly
no test coverage detected