"use client"; import { useState } from "react"; import type { CanvasConflictChoice } from "@/lib/video-canvas/merge-snapshot"; export function VideoCanvasConflictNotice({ fields, onResolve, onDownload, }: { fields: string[]; onResolve: (choice: CanvasConflictChoice) => Promise | undefined; onDownload: () => void; }) { const [busy, setBusy] = useState(false); if (!fields.length) return null; const resolve = async (choice: CanvasConflictChoice) => { setBusy(true); try { await onResolve(choice); } finally { setBusy(false); } }; return (

其他页面修改了相同内容,当前草稿已保留

共有 {fields.length} 处冲突。不同位置的修改会自动合并;以下选择仅处理冲突部分。

); }