PhaseFrameNode.tsx 434 B

123456789101112131415
  1. "use client";
  2. import type { Node, NodeProps } from "@xyflow/react";
  3. import type { FrameData } from "@/lib/flow";
  4. export function PhaseFrameNode({ data }: NodeProps<Node<FrameData>>) {
  5. const frame = data.frame;
  6. return <section className={`phaseFrame tone-${frame.tone}`} aria-label={frame.title}>
  7. <div className="phaseLabel">
  8. <span>{frame.title}</span>
  9. <small>{frame.subtitle}</small>
  10. </div>
  11. </section>;
  12. }