import { useMemo } from "react"; import type { GalleryItem, HCCCandidate, MEATEvidence } from "../lib/types"; import { cn } from "../lib/cn"; interface Props { noteText: string; onChange: (text: string) => void; gallery: GalleryItem[]; onPickGalleryItem: (item: GalleryItem) => void; onCode: () => void; loading: boolean; selectedCandidate: HCCCandidate | null; } export function NotePanel(props: Props) { const { noteText, onChange, gallery, onPickGalleryItem, onCode, loading, selectedCandidate } = props; const highlights = useMemo(() => buildHighlights(selectedCandidate, noteText), [ selectedCandidate, noteText, ]); return (

Clinical note