import React from 'react'; import { MousePointer2, Square, MoveRight, Type, Download, Trash2, ImagePlus, Copy } from 'lucide-react'; import { ToolType } from '../types'; interface ToolbarProps { currentTool: ToolType; setTool: (tool: ToolType) => void; onExport: () => void; onCopy: () => void; onClear: () => void; hasImage: boolean; onDeleteSelected: () => void; hasSelection: boolean; } const Toolbar: React.FC = ({ currentTool, setTool, onExport, onCopy, onClear, hasImage, onDeleteSelected, hasSelection, }) => { const tools = [ { id: 'select', icon: MousePointer2, label: 'Select' }, { id: 'rect', icon: Square, label: 'Box' }, { id: 'arrow', icon: MoveRight, label: 'Arrow' }, { id: 'text', icon: Type, label: 'Text' }, ] as const; return (
{tools.map((tool) => ( ))}
); }; export default Toolbar;