()
| 33 | } from '@srcbook/components/src/components/ui/tooltip'; |
| 34 | |
| 35 | function LightDarkModeDebugChanger() { |
| 36 | const { theme, toggleTheme } = useTheme(); |
| 37 | |
| 38 | if (process.env.NODE_ENV === 'production') { |
| 39 | return null; |
| 40 | } |
| 41 | |
| 42 | return ( |
| 43 | <div className="absolute left-1/2 -translate-x-1/2"> |
| 44 | <button |
| 45 | onClick={toggleTheme} |
| 46 | className="border-none outline-none text-muted-foreground hover:text-foreground font-semibold transition-colors" |
| 47 | > |
| 48 | {theme === 'light' ? '(DEV) Dark mode' : '(DEV) Light mode'} |
| 49 | </button> |
| 50 | </div> |
| 51 | ); |
| 52 | } |
| 53 | |
| 54 | type SessionNavbarProps = { |
| 55 | readOnly?: boolean; |
nothing calls this directly
no test coverage detected