/** * DataVision Logo Component - Theme-aware * Uses the official logo images with automatic light/dark mode switching */ import React from 'react'; import { useUserStore } from '../store/userStore'; interface LogoProps { size?: 'sm' | 'md' | 'lg' | 'xl'; showText?: boolean; className?: string; } const Logo: React.FC = ({ size = 'md', showText = true, className = '' }) => { const { isDark } = useUserStore(); const sizes = { sm: { icon: 28, text: 'text-sm' }, md: { icon: 36, text: 'text-xl' }, lg: { icon: 48, text: 'text-2xl' }, xl: { icon: 64, text: 'text-3xl' }, }; const { icon, text } = sizes[size]; // Use dark logo for dark mode, light logo for light mode const logoSrc = isDark ? '/datavision-logo-dark.jpg' : '/datavision-logo-light.jpg'; return (
{/* Logo Image */} DataVision Logo {/* Dynamic Text - Data(Theme) + Vision(Green) */} {showText && (
Data Vision
)}
); }; export default Logo;