import { Monitor, Moon, Sun } from 'lucide-react' import clsx from 'clsx' import type { ThemeMode } from './useThemeMode' type LayoutThemeToggleProps = { mode: ThemeMode onChange: (mode: ThemeMode) => void } const options: Array<{ mode: ThemeMode label: string icon: typeof Sun }> = [ { mode: 'light', label: '白天模式', icon: Sun }, { mode: 'dark', label: '夜晚模式', icon: Moon }, { mode: 'system', label: '跟随系统', icon: Monitor }, ] export function LayoutThemeToggle({ mode, onChange }: LayoutThemeToggleProps) { return (