import type { ReactNode } from "react"; import { Link } from "react-router-dom"; import { Text } from "@cloudflare/kumo"; import { ArrowLeftIcon } from "@phosphor-icons/react"; interface DemoWrapperProps { title: string; description: ReactNode; statusIndicator?: ReactNode; children: ReactNode; } export function DemoWrapper({ title, description, statusIndicator, children }: DemoWrapperProps) { return (
All demos
{title}
{statusIndicator &&
{statusIndicator}
}
{description}
{children}
); }