import { formatDate, fromUnix } from "@/lib/utils/dates"; import { BANNER } from "@/constants"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import Image from "next/image"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import SmallProfileLine from "@/components/ProfileContainers/SmallProfileLine"; import AvatarStack from "@/components/ProfileContainers/AvatarStack"; import { NDKEvent } from "@nostr-dev-kit/ndk"; import { getTagValues, getTagAllValues } from "@/lib/nostr/utils"; import { HiOutlineMapPin, HiOutlineUserCircle } from "react-icons/hi2"; type LargeFeedCardProps = { event: NDKEvent; }; export default function LargeFeedCard({ event }: LargeFeedCardProps) { const { tags, pubkey, content } = event; const image = getTagValues("image", tags); const users = getTagAllValues("p", tags); return (
{getTagValues("name", tags)} {content}
{!!users.length && (
2 ? users.length - 4 : 0} />
)}

124 Main street, first ave, NY NY, 118034. Across the street from too long

{image ? ( Image ) : (
)}
); }