"use client"; import { useState, type CSSProperties } from "react"; import { CATEGORIES } from "@/lib/ui-config"; import type { CategoryId } from "@/lib/types"; import { Icons } from "./icons"; export function CategoryTile({ category, size = "sm", }: { category: CategoryId; size?: "sm" | "md" | "lg"; }) { const cat = CATEGORIES[category] || CATEGORIES.other; const Icon = Icons[cat.icon as keyof typeof Icons]; const iconSize = { sm: 22, md: 28, lg: 40 }[size]; return (