import { AlertTriangle, X, RefreshCw, Save } from 'lucide-react'; import '../styles/ConfirmDialog.css'; interface ExternalModificationDialogProps { sceneName: string; onReload: () => void; onOverwrite: () => void; onCancel: () => void; } /** * 外部修改对话框 * External Modification Dialog * * 当场景文件被外部修改时显示,让用户选择操作 * Shown when scene file is modified externally, let user choose action */ export function ExternalModificationDialog({ sceneName, onReload, onOverwrite, onCancel }: ExternalModificationDialogProps) { return (
e.stopPropagation()}>

文件已被外部修改

场景 {sceneName} 已在编辑器外部被修改。

请选择如何处理:

); }