"use client"; import { Handle, Position, type NodeProps } from "@xyflow/react"; import { TimerIcon } from "lucide-react"; export function WaitNode({ data }: NodeProps) { const d = data as { ticks?: number; input?: unknown }; return (
Wait {d.ticks ?? "10"} ticks
{d.input !== undefined ? `Input: ${String(d.input).substring(0, 50)}${String(d.input).length > 50 ? "..." : ""}` : "No input"}
); }