"use client"; import { useCallback, useEffect, useRef, useState } from "react"; import { PlayEngine, type EngineEntry, type EngineInfo, type EngineUi, type ItemGate, type MediaRef, type Plan } from "./engine"; // The Play view's engine (engine.ts) as a hook: PlayCut.tsx hands it the plan // and the entries, and gets back what it renders from (`ui`, `failed`, // `info`), the transport (seekTo, setPlaying, the speed) and the refs the // footage canvas and the two