"use client"; import { useState } from "react"; import { Plus, Search, User, Users, Mail, Phone, Globe, MoreHorizontal, MessageSquare, Briefcase, TrendingUp, Star, Clock, X, ChevronRight, ArrowUpRight, DollarSign, Brain, Shield, Activity, CheckCircle2, AlertCircle } from "lucide-react"; import { motion, AnimatePresence } from "framer-motion"; // Mock Data const clients = [ { id: 1, name: "Acme Corp", contact: "John Doe", email: "john@acme.com", status: "Active", value: "$12,400", projects: 2, health: "Stable", lastContact: "2 days ago", aiInsight: "Excellent relationship. High potential for upsell into the Q3 Marketing Package.", history: [ { type: "Meeting", date: "May 12", note: "Q3 Strategy Review" }, { type: "Payment", date: "May 08", note: "$4,200 received" }, ] }, { id: 2, name: "Global Tech", contact: "Jane Smith", email: "jane@global.io", status: "Onboarding", value: "$8,500", projects: 1, health: "Critical", lastContact: "1 week ago", aiInsight: "Risk of churn detected. Last communication was 7 days ago. Immediate outreach suggested.", history: [ { type: "Proposal", date: "May 01", note: "Infrastructure Scale" }, ] }, { id: 3, name: "Nexus Design", contact: "Mike Ross", email: "mike@nexus.com", status: "Active", value: "$42,000", projects: 4, health: "Growth", lastContact: "Today", aiInsight: "Client is expanding rapidly. Consider offering a dedicated project manager role.", history: [] }, { id: 4, name: "Stark Ind.", contact: "Pepper P.", email: "pepper@stark.com", status: "Lead", value: "$0", projects: 0, health: "Neutral", lastContact: "May 14", aiInsight: "Warm lead from the Webflow conference. Interested in AI integration.", history: [] }, ]; export default function ClientsPage() { const [selectedClient, setSelectedClient] = useState(null); return (
{/* Top Header */}

Network / Strategic Clients

12 ACTIVE PARTNERSHIPS
{/* CRM Stats */}
AI Insight

"High churn risk for Global Tech. Immediate outreach suggested."

{/* Main Clients List */}
Partner Entity
Relationship
Strategic Value
Engagement
Actions
{clients.map((client) => ( setSelectedClient(client)} className="grid grid-cols-12 gap-4 p-6 items-center hover:bg-white/[0.02] transition-all group cursor-pointer border-l-2 border-transparent hover:border-primary" >
{client.name.split(' ').map(n => n[0]).join('')}
{client.name}
{client.contact}
{client.health}
{client.value} {client.projects} Active Projects
{client.lastContact} Last Touchpoint
))}
{/* Client Detail Sheet */} {selectedClient && ( <> setSelectedClient(null)} className="fixed inset-0 bg-black/80 backdrop-blur-md z-[100]" />
{selectedClient.name.split(' ').map((n: string) => n[0]).join('')}

{selectedClient.name}

{selectedClient.contact}
{selectedClient.email}
{/* AI Client Pulse */}

Client Health Pulse

"{selectedClient.aiInsight}"

{/* Key Financials */}
LIFETIME VALUE
{selectedClient.value}
ACTIVE DELIVERABLES
{selectedClient.projects}
{/* Relationship History */}

Relationship Log

{selectedClient.history?.length > 0 ? selectedClient.history.map((log: any, i: number) => (
{log.note}
{log.date} • {log.type}
)) :

No historical log entries found for this partner.

}
{/* Quick Actions */}

Strategic Actions

)}
); } function ActionButton({ icon: Icon, label }: { icon: any, label: string }) { return ( ); } function ClientStatCard({ label, value, subtext, icon: Icon }: any) { return (
{label}
{value} {subtext}
); }