'use client'; /** * Canvas Area * * Central area where blocks appear. Shows empty state when no block is active. */ import { AnimatePresence, motion } from 'framer-motion'; import { useSwiftStore } from '@/stores/swift-store'; import type { BlockType } from '@/lib/swift/types'; import type { BlockPrefillData } from '@/stores/swift-store'; import { DagnotatieBlock } from '../blocks/dagnotitie-block'; import { ZoekenBlock } from '../blocks/zoeken-block'; import { OverdrachtBlock } from '../blocks/overdracht-block'; import { PatientContextCard } from '../blocks/patient-context-card'; export function CanvasArea() { const { activeBlock, prefillData, activePatient } = useSwiftStore(); function renderBlock(blockType: BlockType, prefill: BlockPrefillData) { switch (blockType) { case 'dagnotitie': return ; case 'zoeken': return ; case 'overdracht': return ; default: return null; } } const blockAnimations = { initial: { opacity: 0, y: 20, scale: 0.95 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: -20, scale: 0.95 }, transition: { duration: 0.2, ease: [0.4, 0, 0.2, 1] as [number, number, number, number] }, }; return (
{activeBlock ? ( {renderBlock(activeBlock, prefillData)} ) : activePatient ? ( ) : ( )}
); } function EmptyState() { return (

Wat wil je doen?

Typ of spreek je intentie

⌘K om te focussen

); } function ExampleCommand({ icon, text }: { icon: string; text: string }) { return (
{icon} "{text}"
); }