import React, { useState } from "react";
import { motion } from "framer-motion";
import {
ArrowLeft,
Share2,
MoreVertical,
Calendar,
Clock,
User,
ShieldCheck,
CheckCircle2,
FileText,
Activity,
ExternalLink,
Download,
AlertCircle,
} from "lucide-react";
export interface DetailPageProps {
onBack?: () => void;
}
const springPhysics = {
type: "spring",
stiffness: 380,
damping: 26,
};
export default function DetailPage({ onBack = () => {} }: DetailPageProps) {
const [activeTab, setActiveTab] = useState<"overview" | "history" | "documents">("overview");
const timelineEvents = [
{
id: "1",
title: "Project Approved",
date: "Aug 12, 2026 at 14:32",
author: "Sarah Jenkins",
status: "completed",
},
{
id: "2",
title: "Security Audit Passed",
date: "Aug 10, 2026 at 09:15",
author: "Security Bot",
status: "completed",
},
{
id: "3",
title: "Deployment Initiated",
date: "Aug 08, 2026 at 18:40",
author: "Alex Rivera",
status: "completed",
},
];
return (
{/* Sticky Header with Back Navigation */}
PROJ-2026
v2.4.0
Enterprise Neural Processing Pipeline
{/* Main Content Area following 8pt spatial grid */}
{/* Hero Section */}
Enterprise Neural Pipeline
Active
High-throughput automated data ingestion and embedding engine for StyleSeed.
Export Report
{/* Metric Grid */}
{/* Tab Navigation Section */}
{(["overview", "history", "documents"] as const).map((tab) => (
))}
{/* Tab 1: Overview */}
{activeTab === "overview" && (
{/* Main Specification Card */}
System Metadata
- Cluster Architecture
-
Multi-Region Kubernetes (EKS)
- Primary Region
-
us-east-1 (N. Virginia)
- Security Certification
-
SOC-2 Type II Verified
- Last Audit
-
August 10, 2026
{/* Sidebar Quick Card */}
Lead Owner
SJ
Sarah Jenkins
Principal Architect
)}
{/* Tab 2: Activity History */}
{activeTab === "history" && (
Activity Audit Log
{timelineEvents.map((event) => (
{event.title}
Triggered by {event.author} • {event.date}
))}
)}
{/* Tab 3: Documents */}
{activeTab === "documents" && (
Attached Documentation
{["System Architecture Spec v2.pdf", "Security Compliance Report.pdf"].map((doc) => (
))}
)}
);
}