/** Visible note that a value is a suggestion and not something the user entered. */ export function PrefillNote({ id, source }: { id: string; source: string | undefined }) { if (!source) return null; return (

aus letzter Behandlung mit {source}

); } /** The control's aria-describedby, extended by the prefill note when one is shown. */ export function describedByWith( id: string, describedBy: string | undefined, source: string | undefined, ): string | undefined { return [describedBy, source ? `${id}-prefill` : undefined].filter(Boolean).join(" ") || undefined; }