2026-04-10 11:00:56 +02:00
|
|
|
import { ImgHTMLAttributes } from 'react';
|
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
|
import logoDark from '@/img/utils/logo-icon.svg';
|
|
|
|
|
import logoWhite from '@/img/utils/logo-icon-white.svg';
|
2025-10-22 17:09:48 +02:00
|
|
|
|
2026-04-10 11:00:56 +02:00
|
|
|
interface Props extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
|
|
variant?: 'dark' | 'white';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function AppLogoIcon({ variant = 'dark', className, alt = '', ...props }: Props) {
|
|
|
|
|
const src = variant === 'white' ? logoWhite : logoDark;
|
|
|
|
|
|
|
|
|
|
return <img src={src} alt={alt} className={cn('object-contain', className)} {...props} />;
|
2025-10-22 17:09:48 +02:00
|
|
|
}
|