"use client" import { forwardRef } from "react" import { cn } from "../../utils/cn" import { CompassIcon } from "../icons-v2-generated" import type { GuideDisplayProps } from "./types" const GUIDE_LABEL = "OpenFrame Guide" /** * `GUIDE` segment — the assistant's how-to/documentation answer, framed as a * titled card instead of a bare paragraph. * * Chrome only: the caller renders the markdown body and passes it as children, * so a guide goes through the SAME body pipeline as a text segment * (`[card://]` splitting + hoisted entity cards + mention chips). Rendering the * raw markdown here instead would bypass that plan and degrade every card * marker inside a guide to a bare title. */ const GuideDisplay = forwardRef( ({ className, children, ...props }, ref) => { return (
{GUIDE_LABEL}
{children}
) } ) GuideDisplay.displayName = "GuideDisplay" export { GuideDisplay }