Files
gridpilot.gg/apps/website/components/teams/TeamLogo.tsx
2026-01-18 23:36:04 +01:00

31 lines
555 B
TypeScript

import { Logo } from '@/ui/Logo';
import { Users } from 'lucide-react';
export interface TeamLogoProps {
teamId?: string;
src?: string;
alt: string;
size?: number;
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
}
export function TeamLogo({
teamId,
src,
alt,
size = 48,
rounded = 'md',
}: TeamLogoProps) {
const logoSrc = src || (teamId ? `/media/teams/${teamId}/logo` : undefined);
return (
<Logo
src={logoSrc}
alt={alt}
size={size}
rounded={rounded}
icon={Users}
/>
);
}