"use client"; import { EmptyState } from "@prototype/components/platform-ui/empty-state"; import { PrototypeStateCanvasRegistrar } from "@prototype/components/prototypes/prototype-state-canvas"; import { getDefaultPrototypeStateMapPath, parseStateMapReturnTo, } from "@prototype/lib/prototypes/prototype-state-canvas-types"; import Link from "next/link"; import { useSearchParams } from "next/navigation"; import { useMemo } from "react"; import { Minimize2 } from "lucide-react"; import { PrototypeStateMapAddStateButton } from "@prototype/components/prototypes/prototype-state-map-add-state-button"; import styles from "./prototype-state-canvas-overlay.module.scss"; type PrototypeDefaultStateMapPageProps = { slug: string; }; export function PrototypeDefaultStateMapPage({ slug, }: PrototypeDefaultStateMapPageProps) { const searchParams = useSearchParams(); const pagePath = getDefaultPrototypeStateMapPath(slug); const prototypePath = `/prototypes/${slug}`; const backHref = useMemo(() => { const returnTo = parseStateMapReturnTo(searchParams); if (returnTo) return returnTo; return prototypePath; }, [prototypePath, searchParams]); return (

State map

Preview states appear here once this prototype defines a state map.

No preview states yet. When this prototype adds a `*-preview-states.ts` registry, wire a state map page per AGENTS.md — until then this map stays empty.
); }