'use client'; import { useToolStore } from '@/store'; import { useShapeStore } from '@/store/shape-store'; import { useSelectionStore } from '@/store/selection-store'; export function ToolOptions() { const { activeTool, settings, setSize, setOpacity, setHardness, setColor, setFlow } = useToolStore(); const { settings: shapeSettings, setShapeType } = useShapeStore(); const { selectionType, setSelectionType } = useSelectionStore(); // Drawing tools: brush, pencil, eraser const isDrawingTool = ['brush', 'eraser', 'pencil'].includes(activeTool); const showHardness = ['brush'].includes(activeTool); const showColor = ['brush', 'pencil'].includes(activeTool); const showFlow = ['brush'].includes(activeTool); // Fill tool const isFillTool = activeTool === 'fill'; // Shape tool const isShapeTool = activeTool === 'shape'; // Selection tool const isSelectionTool = activeTool === 'select'; // Don't show options bar if no options available if (!isDrawingTool && !isFillTool && !isShapeTool && !isSelectionTool) { return null; } return (