import { cn } from '@/lib/cn' import { OBJECT_KINDS, kindDef } from './kinds' import { useEditorStore } from './store' /** * The object-kind palette. Tap a kind to arm it, then tap the canvas to place * (works on desktop and touch). Tapping the armed kind again disarms it. */ export function Palette() { const armedKind = useEditorStore((s) => s.armedKind) const setArmedKind = useEditorStore((s) => s.setArmedKind) const select = useEditorStore((s) => s.select) return (
Tap the canvas to place a {kindDef(armedKind)?.label ?? 'object'}.
)}