import React from 'react'; import { Box } from './primitives/Box'; import { Image } from './Image'; import { Tag } from 'lucide-react'; import { Icon } from './Icon'; export interface CategoryIconProps { categoryId?: string; src?: string; alt: string; size?: number; className?: string; } export function CategoryIcon({ categoryId, src, alt, size = 24, className = '', }: CategoryIconProps) { const iconSrc = src || (categoryId ? `/media/categories/${categoryId}/icon` : undefined); return ( {iconSrc ? ( {alt} ) : ( 20 ? 4 : 3} color="text-gray-500" /> )} ); }