Files
gridpilot.gg/apps/website/ui/CategoryIcon.tsx
2026-01-19 12:35:16 +01:00

29 lines
647 B
TypeScript

import { Tag } from 'lucide-react';
import { Box } from './Box';
import { Icon } from './Icon';
export interface CategoryIconProps {
category: string;
size?: number;
}
export const CategoryIcon = ({
category,
size = 24
}: CategoryIconProps) => {
// Map categories to icons if needed, for now just use Tag
return (
<Box
width={size}
height={size}
display="flex"
alignItems="center"
justifyContent="center"
bg="var(--ui-color-bg-surface-muted)"
style={{ borderRadius: 'var(--ui-radius-sm)' }}
>
<Icon icon={Tag} size={size > 20 ? 4 : 3} intent="low" />
</Box>
);
};