'use client'; import { useToolStore } from '@/store'; import { Settings2 } from 'lucide-react'; export function ToolSettings() { const { activeTool, settings, setSize, setOpacity, setHardness, setColor, setFlow, } = useToolStore(); const showSizeOpacity = ['brush', 'eraser', 'pencil'].includes(activeTool); const showHardness = ['brush'].includes(activeTool); const showColor = ['brush', 'pencil', 'fill'].includes(activeTool); const showFlow = ['brush'].includes(activeTool); if (!showSizeOpacity && !showColor) { return null; } return (