import React from 'react'; import Link from 'next/link'; import type { Category } from '../types/categories'; import { getColorConfig } from '../lib/utils'; type CategoryCardProps = Category; const CategoryCard: React.FC = ({ title, icon: Icon, colorName, description, status, graphic: Graphic, slug, }) => { const { bg, text, gradient, iconBg } = getColorConfig(colorName); const isComingSoon = status === 'Coming Soon'; const CardContent = () => ( <> {(status === 'New' || status === 'Coming Soon') && (
{status}
)}

{title}

{description}

); return (
{isComingSoon ? ( <> ) : ( )}
); }; export default CategoryCard;