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

{title}

{children}
); }