{
cardRefs.current[annotation.id] = el;
}}
>
onAnnotationClick?.(annotation)}
style={{
marginBottom: 12,
borderLeft: `4px solid ${config.color}`,
backgroundColor: isActive ? `${config.color}11` : 'transparent',
cursor: 'pointer',
transition: 'all 0.2s',
}}
bodyStyle={{ padding: 12 }}
>
{config.icon} {annotation.title}
{annotation.content.length > 100
? `${annotation.content.slice(0, 100)}...`
: annotation.content}
{annotation.tags && annotation.tags.length > 0 && (
{annotation.tags.map((tag, index) => (
{tag}
))}
)}
{/* 特殊元数据 */}
{annotation.metadata.strength && (
强度: {annotation.metadata.strength}/10
)}
{annotation.metadata.foreshadowType && (
{annotation.metadata.foreshadowType === 'planted' ? '已埋下' : '已回收'}
)}
);
};
if (annotations.length === 0) {
return (