import type { ConversationPlan } from "@chopin/protocol"; export type SourceDestination = { source: ConversationPlan.SourceRef; itemId: string }; export function Sources({ itemId, onSource, sources }: { itemId: string; onSource: (destination: SourceDestination) => void; sources: ConversationPlan.SourceRef[]; }) { if (sources.length === 0) return null; return ( {sources.map((source, index) => ( ))} ); }