"use client" import Link from "next/link" import { motion } from "framer-motion" import { PageHeader } from "@/components/shared/page-header" import { LeadDetailsCard } from "@/components/leads/lead-details-card" import { LeadStatusBadge } from "@/components/leads/lead-status-badge" import { NoteTimeline } from "@/components/notes/note-timeline" import { NoteForm } from "@/components/notes/note-form" import { Button } from "@/components/ui/button" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select" import { getLeadById } from "@/data/leads" import { getNotesByLeadId } from "@/data/notes" import { ArrowLeft, Edit, ExternalLink } from "lucide-react" export default function LeadDetailsPage({ params }: { params: { id: string } }) { const lead = getLeadById(params.id) const leadNotes = lead ? getNotesByLeadId(lead.id) : [] if (!lead) { return (
The lead you are looking for does not exist.
{activity.action}
by {activity.user} · {new Date(activity.date).toLocaleDateString(undefined, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit", })}