import "./Frame.css"; import type { FrameType, StepType } from "../../../lib/schemas"; import Step from "./Step"; export default function Frame({ frame, frameIndex, onRemove, addStep, removeStep, updateStep, updateTitle, reOrder, }: { frame: FrameType; frameIndex: number; onRemove: (frameId: string) => void; addStep: (frameId: string) => void; removeStep: (stepId: string) => void; updateStep: (stepId: string, text: string) => void; updateTitle: (frameId: string, title: string) => void; reOrder: (startIndex: number, endIndex: number) => void; }) { return (
{frame.title} {frame.steps.map((step: StepType, index: number) => ( ))}
); }