"use client"; import { Suspense } from "react"; import { useParams, useSearchParams, useRouter } from "next/navigation"; const SECTIONS = [ { id: "emails", label: "Emails", icon: "◈", title: "Email", desc: "Transactional and support emails — onboarding sequences, password resets, billing receipts, and support replies — all in one place.", items: ["Onboarding Sequence", "Transactional Emails", "Support Replies", "Billing Notices", "Digests & Summaries"], }, { id: "chat", label: "Chat Support", icon: "◎", title: "Chat Support", desc: "Live chat and AI-powered support widget embedded in your product. Routes to human agents when needed, logs every conversation.", items: ["Live Chat Widget", "AI First Response", "Agent Handoff", "Conversation History", "Canned Responses"], }, { id: "support-site", label: "Support Site", icon: "▭", title: "Support Site", desc: "Your public help centre — searchable docs, FAQs, guides, and tutorials. Deflects support tickets before they're created.", items: ["Help Articles", "FAQs", "Video Guides", "Release Notes", "Status Page"], }, { id: "communications", label: "Communications", icon: "↗", title: "In-App Communications", desc: "Announcements, tooltips, banners, and nudges shown directly inside your product to guide and inform users.", items: ["In-App Banners", "Tooltips & Tours", "Feature Announcements", "NPS Surveys", "Feedback Prompts"], }, ] as const; type SectionId = typeof SECTIONS[number]["id"]; const NAV_GROUP: React.CSSProperties = { fontSize: "0.6rem", fontWeight: 700, color: "#b5b0a6", letterSpacing: "0.09em", textTransform: "uppercase", padding: "14px 12px 6px", fontFamily: "var(--font-inter), ui-sans-serif, sans-serif", }; function AssistInner() { const params = useParams(); const searchParams = useSearchParams(); const router = useRouter(); const workspace = params.workspace as string; const projectId = params.projectId as string; const activeId = (searchParams.get("section") ?? "emails") as SectionId; const active = SECTIONS.find(s => s.id === activeId) ?? SECTIONS[0]; const setSection = (id: string) => router.push(`/${workspace}/project/${projectId}/assist?section=${id}`, { scroll: false }); return (
{/* Left nav */}
Assist
{SECTIONS.map(s => { const isActive = activeId === s.id; return ( ); })}
{/* Content */}
{active.title}
{active.desc}
{active.items.map(item => (
{item} Soon
))}
{active.title} is coming to VIBN
We're building this section next. Shape it by telling us what you need.
); } export default function AssistPage() { return ( Loading…}> ); }