import { Card, CardContent } from "@/components/ui/card"; import { Resource } from "@/lib/types/resource"; import Image from "next/image"; interface ResourceCardProps { resource: Resource; key: string; } export function ResourceCard({ resource, key }: ResourceCardProps) { return (
资源图片
{resource.title}
{resource.description}
{ resource.tags.map((tag) => (
{tag.name}
)) }
) }