import Image from "next/image"; import Link from "next/link"; import { ChevronLeftIcon, ScrollTextIcon } from "lucide-react"; import { collectGuideSections, PublicBlockRenderer, } from "@/components/public/block-renderer"; import { SectionDrawer } from "@/components/public/section-drawer"; import { ScrollableNav } from "@/components/public/scrollable-nav"; import { SiteFooter } from "@/components/public/site-footer"; import { SiteHeader } from "@/components/public/site-header"; import { LiveRefresh } from "@/components/live-refresh"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Badge } from "@/components/ui/badge"; import { Separator } from "@/components/ui/separator"; import type { PageSnapshot } from "@/lib/content/types"; import { cn } from "@/lib/utils"; import { navigationIconPath } from "@/lib/navigation"; export function GuideShell({ snapshot }: { snapshot: PageSnapshot }) { const sections = collectGuideSections(snapshot.blocks); return (
{process.env.BUZZ_DEMO_MODE === "true" ? null : ( )}
{snapshot.pages.map((page) => ( {navigationIconPath(page.slug) ? : null} {page.title} ))}
{sections.length > 0 ? : null} {snapshot.page.publicNote ? ( ) : null}
); }