'use client'; import { useThemeStore } from '@/stores/theme-store'; import { themes, type ThemeName } from '@/themes'; import { Button } from '@/components/ui/button'; import { Sun, Moon, Palette } from 'lucide-react'; const themeIcons: Record = { light: , vibrant: , corporate: , dark: , }; const themeOrder: ThemeName[] = ['light', 'vibrant', 'corporate', 'dark']; export function Header({ title }: { title: string }) { const { theme, setTheme } = useThemeStore(); const cycleTheme = () => { const currentIndex = themeOrder.indexOf(theme); const nextIndex = (currentIndex + 1) % themeOrder.length; setTheme(themeOrder[nextIndex]); }; return (

{title}

); }