'use client'; /** * Artifact Area (v3.0) * * Displays active blocks based on activeBlock state. * Shows placeholder when no block is active. * * Epic: E1 (Foundation), E3 (Chat API & Medical Scribe) * Stories: E1.S3 (Placeholder componenten), E3.S6 (Artifact opening from chat) */ import { useSwiftStore } from '@/stores/swift-store'; import { DagnotatieBlock } from '../blocks/dagnotitie-block'; import { ZoekenBlock } from '../blocks/zoeken-block'; import { OverdrachtBlock } from '../blocks/overdracht-block'; import { FallbackPicker } from '../blocks/fallback-picker'; export function ArtifactArea() { const activeBlock = useSwiftStore((s) => s.activeBlock); const prefillData = useSwiftStore((s) => s.prefillData); // Render active block if (activeBlock) { return (
{activeBlock === 'dagnotitie' && } {activeBlock === 'zoeken' && } {activeBlock === 'overdracht' && } {activeBlock === 'fallback' && }
); } // Placeholder when no block is active return (
📋

Artifacts verschijnen hier

Wanneer je een actie vraagt in de chat, verschijnt het bijbehorende formulier of overzicht hier.

📝

Dagnotitie

Voor snelle notities tijdens de dienst

🔍

Patiënt Zoeken

Zoek en selecteer patiënten

🔄

Overdracht

Dienst overdracht met AI-samenvatting

Vraag me iets in de chat om te beginnen!

); }