"use client"; import { useParams, usePathname } from "next/navigation"; import { Code2, Globe, Server, MessageSquare, ChevronRight, } from "lucide-react"; import { PageTemplate, PageSection, PageCard, PageGrid, } from "@/components/layout/page-template"; const PRODUCT_NAV_ITEMS = [ { title: "Code", icon: Code2, href: "/code" }, { title: "Website", icon: Globe, href: "/product#website" }, { title: "Chat Agent", icon: MessageSquare, href: "/product#agent" }, { title: "Deployment", icon: Server, href: "/product#deployment" }, ]; export default function ProductPage() { const params = useParams(); const pathname = usePathname(); const workspace = params.workspace as string; const projectId = params.projectId as string; const sidebarItems = PRODUCT_NAV_ITEMS.map((item) => { const fullHref = `/${workspace}/project/${projectId}${item.href}`; return { ...item, href: fullHref, isActive: pathname === fullHref || pathname.startsWith(fullHref), }; }); return ( {/* Quick Navigation Cards */} {PRODUCT_NAV_ITEMS.map((item) => { const Icon = item.icon; const fullHref = `/${workspace}/project/${projectId}${item.href}`; return (

{item.title}

{item.title === "Code" && "Browse codebase, manage repositories"} {item.title === "Website" && "Marketing site, landing pages"} {item.title === "Chat Agent" && "Conversational AI interface"} {item.title === "Deployment" && "Hosting, CI/CD, environments"}

); })}
{/* Code Section */}

Browse Repository

View files, commits, and code structure

{/* Website Section */}

Manage your marketing website and landing pages

{/* Chat Agent Section */}

Configure and manage your AI chat agent

{/* Deployment Section */}

Production

Live

vercel.app

Staging

Preview

staging.vercel.app

Development

Local

localhost:3000

); }