'use client'; import * as React from 'react'; import { Play, Pause, Square, SkipBack, Scissors, Copy, Clipboard, Trash2, CropIcon, Undo2, Redo2, ZoomIn, ZoomOut, Maximize2, } from 'lucide-react'; import { Button } from '@/components/ui/Button'; import { cn } from '@/lib/utils/cn'; export interface ToolbarProps { // Playback isPlaying: boolean; isPaused: boolean; onPlay: () => void; onPause: () => void; onStop: () => void; // Edit hasSelection: boolean; hasClipboard: boolean; onCut: () => void; onCopy: () => void; onPaste: () => void; onDelete: () => void; onTrim: () => void; // History canUndo: boolean; canRedo: boolean; onUndo: () => void; onRedo: () => void; // Zoom onZoomIn: () => void; onZoomOut: () => void; onFitToView: () => void; disabled?: boolean; className?: string; } export function Toolbar({ isPlaying, isPaused, onPlay, onPause, onStop, hasSelection, hasClipboard, onCut, onCopy, onPaste, onDelete, onTrim, canUndo, canRedo, onUndo, onRedo, onZoomIn, onZoomOut, onFitToView, disabled = false, className, }: ToolbarProps) { const handlePlayPause = () => { if (isPlaying) { onPause(); } else { onPlay(); } }; return (
{/* Transport Controls */}
{/* Edit Tools */}
{/* History */}
{/* Zoom Controls */}
); }