import Button from "@moduletrace/twui/layout/Button"; import Span from "@moduletrace/twui/layout/Span"; import BotAvatar from "@/src/components/general/bot-avatar"; import WorkspaceAvatar from "@/src/components/general/workspace-avatar"; import type { BotFace } from "@/src/dict/bot-dict"; import botStoneProps from "@/src/utils/bot-stone-props"; import type { ComposerMentionItem } from "../(utils)/search-mention-items"; type Props = { item: ComposerMentionItem; active: boolean; onPick: (item: ComposerMentionItem) => void; }; /** * One bot or workspace in the mention menu, with its role or description. */ export default function ComposerMentionOption({ item, active, onPick }: Props) { const { bot, workspace } = item; const detail = bot?.role || workspace?.description || ""; return ( ); }