{ if (triggerChar === '@') { if (idType === 'U') { // Open user profile console.log('Clicked user mention', id); } else if (idType === 'A') { // Open agent/assistant/ai model profile console.log('Clicked agent mention', id); await goto(`/?model=${id}`); } } else if (triggerChar === '#') { if (idType === 'C') { // Open channel if ($channels.find((c) => c.id === id)) { await goto(`/channels/${id}`); } } else if (idType === 'T') { // Open thread } } else { // Unknown trigger char, just log console.log('Clicked mention', id); } }} content={id} placement="top" > {triggerChar}{label}