import { Pencil, Eraser, Type, Undo, Trash2, PenLine, MousePointer } from 'lucide-react'; import { PenTool } from 'lucide-react'; import { Undo2 } from 'lucide-react'; import { useState } from 'react'; import DimensionSelector from './DimensionSelector'; const ToolBar = ({ currentTool, setCurrentTool, handleUndo, clearCanvas, orientation = 'horizontal', currentWidth, setStrokeWidth, currentDimension, onDimensionChange }) => { const mainTools = [ // { id: 'selection', icon: MousePointer, label: 'Selection' }, { id: 'pencil', icon: Pencil, label: 'Pencil' }, // { id: 'pen', icon: PenTool, label: 'Pen' }, { id: 'eraser', icon: Eraser, label: 'Eraser' }, // { id: 'text', icon: Type, label: 'Text' } ]; const actions = [ { id: 'undo', icon: Undo2, label: 'Undo', onClick: handleUndo }, { id: 'clear', icon: Trash2, label: 'Clear', onClick: clearCanvas } ]; const containerClasses = orientation === 'vertical' ? 'flex flex-col gap-2 bg-white rounded-xl shadow-soft p-2 border border-gray-200' : 'flex gap-2 bg-white rounded-xl shadow-soft p-2 border border-gray-200'; return (