import type { ReactNode } from 'react'; import { Icon } from '@/client/ui/icons.tsx'; import { anchors, branchStyles } from './diagram/diagram-model.ts'; import type { Branch, ExplanationTrigger } from './diagram/diagram-model.ts'; type HeadingProps = ExplanationTrigger & { branch: Branch; title: string; caption: string; live: boolean; }; /** Common branch layout; each panel supplies its own controls and content. */ export function BranchPanel({ children, label, ...heading }: HeadingProps & { label: string; children: ReactNode }) { const { branch, expanded } = heading; return (
{children}
); } function BranchHeading({ branch, title, caption, expanded, onSelect, live }: HeadingProps) { return (
{live ? 'LIVE' : 'IDLE'}
); }