import { Badge } from '@thedaviddias/design-system/badge' import { ExternalLink } from 'lucide-react' import Link from 'next/link' import { Card } from '@/components/ui/card' import { formatDate } from '@/lib/utils' interface ResourceCardProps { resource: { slug: string title: string description: string url: string date: string type: string source: string tags?: string[] } } /** * Renders a card displaying a resource with title, description, and metadata */ export function ResourceCard({ resource }: ResourceCardProps) { return (
{resource.type}

{resource.title}

{resource.description}

{resource.source} {resource.tags?.map(tag => ( {tag} ))}
) }