Files
smesh/src/assets/Icon.tsx
mleku 6a7bfe0a3e refactor: update branding assets and convert settings to accordion UI
- Replace SVG favicons with PNG icons from new smeshicon assets
- Add theme-aware Icon component using smeshiconlight/dark PNGs
- Refactor Settings page to use collapsible accordion sections
- Add Radix UI accordion component with animations
- Update QrCode component to use new PNG icon
- Remove old favicon.svg and nostr.json files
- Add new logo assets in resources/ and src/assets/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 05:10:41 +02:00

11 lines
370 B
TypeScript

import { useTheme } from '@/providers/ThemeProvider'
import iconLight from './smeshiconlight.png'
import iconDark from './smeshicondark.png'
export default function Icon({ className }: { className?: string }) {
const { theme } = useTheme()
const iconSrc = theme === 'light' ? iconLight : iconDark
return <img src={iconSrc} alt="Smesh" className={className} />
}