'use client';
import { useToolStore } from '@/store';
import type { ToolType } from '@/types';
import {
Pencil,
Paintbrush,
Eraser,
PaintBucket,
MousePointer,
} from 'lucide-react';
import { cn } from '@/lib/utils';
const tools: { type: ToolType; icon: React.ReactNode; label: string }[] = [
{ type: 'pencil', icon: , label: 'Pencil' },
{ type: 'brush', icon: , label: 'Brush' },
{ type: 'eraser', icon: , label: 'Eraser' },
{ type: 'fill', icon: , label: 'Fill' },
{ type: 'select', icon: , label: 'Select' },
];
export function ToolPalette() {
const { activeTool, setActiveTool } = useToolStore();
return (
Tools
{tools.map((tool) => (
))}
);
}