1 import { useTheme } from '@/providers/ThemeProvider' 2 import iconLight from './smeshiconlight.png' 3 import iconDark from './smeshicondark.png' 4 5 export default function Icon({ className }: { className?: string }) { 6 const { theme } = useTheme() 7 const iconSrc = theme === 'light' ? iconLight : iconDark 8 9 return <img src={iconSrc} alt="Smesh" className={className} /> 10 } 11