import React from 'react'; import { Scissors } from 'lucide-react'; import { TypewriterText } from './common/TypewriterText'; import { ContentCard } from './common/ContentCard'; import { ProgressBar } from './common/ProgressBar'; import { DotLoading } from './common/DotLoading'; import { SkeletonCard } from './common/SkeletonCard'; import { IconLoading } from './common/IconLoading'; interface EditingContent { rhythm?: { stableId: string; concept: string; application: string; current: string; progress: number; }; audioVideo?: Array<{ id: string; stableId: string; aspect: string; details: string; sync?: string; balance?: string; progress: number; }>; emotionProgression?: { stableId: string; stages: string; techniques: string; current: string; progress: number; }; transitions?: Array<{ id: string; stableId: string; type: string; usage: string; }>; styleUnity?: { stableId: string; colorGrading: string; toneCurve: string; progress: number; }; finalOutput?: { format: string; resolution: string; bitrate: string; audio: string; duration: string; status: string; progress: number; }; } interface EditorProps { currentContent: EditingContent; isPlaying: boolean; } const Editor: React.FC = ({ currentContent, isPlaying }) => { return (
{/* 剪辑节奏把控 */}

Editing rhythm control

{currentContent.rhythm ? (
Rhythm Concept
Practical Application
Current Status
) : (
{Array.from({length: 3}, (_, i) => ( ))}
)}
{/* 音画关系处理 */}

Audio and video relationship processing

{currentContent.audioVideo ? ( currentContent.audioVideo.map((av) => (
{av.aspect}
{av.sync && `Synchronization accuracy: ${av.sync}`} {av.balance && `Balanced Strategy: ${av.balance}`}
)) ) : ( Array.from({length: 3}, (_, i) => ( )) )}
{/* 情绪递进调校 */}

Emotional Progressive Adjustment

{currentContent.emotionProgression ? (
The progressive stage
Adjustment Techniques
Current progress
) : (
{Array.from({length: 3}, (_, i) => ( ))}
)}
{/* 转场效果选择 */}

Transition effect selection

{currentContent.transitions ? ( currentContent.transitions.map((trans) => (
{trans.type}
)) ) : ( Array.from({length: 4}, (_, i) => ( )) )}
{/* 整体风格统一 */}

Unified overall style

{currentContent.styleUnity ? (
Color uniformity
Tone Curve
) : (
{Array.from({length: 2}, (_, i) => ( ))}
)}
{/* 最终输出 */}

Final Output {currentContent.finalOutput ? ( ) : ( )}

{currentContent.finalOutput ? ( <>
{Object.entries({ 'Format': currentContent.finalOutput.format, 'Resolution': currentContent.finalOutput.resolution, 'Bitrate': currentContent.finalOutput.bitrate }).map(([key, value]) => (
{key}: {value}
))}
{Object.entries({ 'Audio': currentContent.finalOutput.audio, 'Duration': currentContent.finalOutput.duration, 'Status': currentContent.finalOutput.status }).map(([key, value]) => (
{key}: {value}
))}
) : ( <>
{Array.from({length: 3}, (_, i) => ( ))}
{Array.from({length: 3}, (_, i) => ( ))}
)}
); }; export default Editor;