import type { StoryboardGlobals } from "@hyperframes/core/storyboard"; export interface StoryboardDirectionProps { globals: StoryboardGlobals; frameCount: number; } /** * Global direction header: the message/thesis plus arc, audience, and format. * This is the storyboard's "north star" pulled from the manifest frontmatter. */ export function StoryboardDirection({ globals, frameCount }: StoryboardDirectionProps) { const meta = [ { label: "Arc", value: globals.arc }, { label: "Audience", value: globals.audience }, { label: "Voice", value: globals.extra.voice }, { label: "Format", value: globals.format }, { label: "Frames", value: String(frameCount) }, ].filter((item): item is { label: string; value: string } => Boolean(item.value)); return (
Storyboard
{globals.message ? (

{globals.message}

) : (

Untitled storyboard

)}
{meta.map((item) => (
{item.label}
{item.value}
))}
); }