import Image from "next/image"; import Link from "next/link"; import { RiArrowRightLine } from "react-icons/ri"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { NDKUserProfile } from "@nostr-dev-kit/ndk"; import { BANNER } from "@/constants/app"; import { getNameToShow } from "@/lib/utils"; type CreatorCardProps = { profile?: NDKUserProfile; npub: string; recentWork: { id: string; title: string; summary: string; href: string; }[]; }; export default function CreatorCard({ profile, npub, recentWork, }: CreatorCardProps) { return ( background
{getNameToShow({ profile, npub })} {profile?.about} user Recent work:
    {recentWork.map((item) => (
  • {item.title}

    {item.summary ?? ""}

  • ))}
); }