"use client"; import { useState } from "react"; import { Plus, Search, FileText, FileCheck, Clock, Shield, MoreHorizontal, Download, Share2, Eye, Brain, ChevronRight, ArrowRight, X, CheckCircle2, AlertCircle, DollarSign, PenTool, Send, Layout, List } from "lucide-react"; import { motion, AnimatePresence } from "framer-motion"; // Mock Data const proposals = [ { id: 1, title: "Enterprise AI Integration", client: "Acme Corp", value: "$42,000", status: "Sent", date: "May 15", health: "Warm", aiInsight: "92% probability of closing based on recent meeting sentiment analysis.", details: "Full stack AI integration including LLM deployment and custom data pipelines." }, { id: 2, title: "Cloud Infrastructure Audit", client: "Global Tech", value: "$12,500", status: "Negotiation", date: "May 12", health: "Critical", aiInsight: "Client is questioning the pricing on Clause 4.2. Suggesting a 5% bundle discount.", details: "Security audit and scalability roadmap for the AWS infrastructure." }, { id: 3, title: "Design System Revamp", client: "Nexus Design", value: "$8,200", status: "Signed", date: "May 08", health: "Secure", aiInsight: "", details: "" }, { id: 4, title: "Mobile App Retainer", client: "Stark Ind.", value: "$5,000/mo", status: "Draft", date: "May 20", health: "Lead", aiInsight: "", details: "" }, ]; export default function ProposalsPage() { const [selectedProposal, setSelectedProposal] = useState(null); const [viewMode, setViewMode] = useState<"grid" | "list">("grid"); return (
{/* Top Header */}

Business / Proposals & Contracts

8 SIGNED CONTRACTS
{/* Lifecycle Status Cards */}
{/* Main Container */}
Sort by: Latest
{viewMode === "grid" ? (
{proposals.map((prop) => ( setSelectedProposal(prop)} className="bg-[#0A0710] border border-white/5 rounded-sm p-8 flex flex-col gap-8 relative group overflow-hidden shadow-2xl cursor-pointer hover:border-primary/30 transition-all" >
{prop.status} {prop.client}

{prop.title}

Contract Value
{prop.value}
Updated {prop.date}
{prop.health} PULSE
))}
) : (
Document Title
Client
Lifecycle
Value
Actions
{proposals.map(prop => (
setSelectedProposal(prop)} className="grid grid-cols-12 gap-4 p-6 items-center hover:bg-white/[0.02] transition-all group cursor-pointer">
{prop.title}
{prop.client}
{prop.status}
{prop.value}
))}
)}
{/* Proposal Detail Sheet */} {selectedProposal && ( <> setSelectedProposal(null)} className="fixed inset-0 bg-black/80 backdrop-blur-md z-[100]" />
{selectedProposal.status} {selectedProposal.client}

{selectedProposal.title}

{/* AI Closing Probability */} {selectedProposal.aiInsight && (

AI Strategic Analysis

"{selectedProposal.aiInsight}"

)} {/* Key Details */}
CONTRACT VALUE
{selectedProposal.value}
RELATIONSHIP HEALTH
{selectedProposal.health}
{/* Lifecycle Roadmap */}

Engagement History

{/* Quick Actions */}

Contractual Controls

)}
); } function HistoryItem({ title, date, status }: any) { return (
{title}
{date}
); } function ControlBtn({ icon: Icon, label }: any) { return ( ); } function StatusCard({ label, count, color, icon: Icon }: any) { return (
{label}
{count}
); }