{"version":3,"file":"UserGroupItem.mjs","names":[],"sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/UserGroupItem.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport React from 'react';\nimport type { UserGroupMentionSuggestion } from 'stream-chat';\nimport { ListItemLayout } from '../../../ListItemLayout';\nimport { MentionSuggestionTitle } from './MentionSuggestionTitle';\nimport type { MentionItemComponentProps } from './types';\nimport { TokenizedSuggestionParts } from '../TokenizedSuggestionParts';\nimport { useComponentContextIcons } from '../../../../context';\n\nexport type UserGroupItemProps = MentionItemComponentProps<UserGroupMentionSuggestion>;\n\nexport const UserGroupItem = ({\n  entity,\n  focused,\n  ...buttonProps\n}: UserGroupItemProps) => {\n  const { IconUsers } = useComponentContextIcons();\n  void focused;\n\n  return (\n    <ListItemLayout\n      contentClassName='str-chat__suggestion-list__item-content'\n      LeadingIcon={IconUsers}\n      RootElement='button'\n      rootProps={{\n        ...buttonProps,\n        className: clsx(\n          'str-chat__context-menu__button',\n          buttonProps.className,\n          'str-chat__suggestion-list__mention',\n        ),\n        role: buttonProps.role ?? 'menuitem',\n        title: `@${entity.name}`,\n      }}\n      selected={focused}\n      subtitle={entity.description}\n      subtitleClassName='str-chat__suggestion-list__item-details'\n      title={\n        <MentionSuggestionTitle>\n          <TokenizedSuggestionParts tokenizedDisplayName={entity.tokenizedDisplayName} />\n        </MentionSuggestionTitle>\n      }\n      titleClassName='str-chat__suggestion-list__item-title str-chat__suggestion-list__mention-item-title'\n    />\n  );\n};\n"],"mappings":";;;;;;;;AAWA,IAAa,iBAAiB,EAC5B,QACA,SACA,GAAG,kBACqB;CACxB,MAAM,EAAE,cAAc,yBAAyB;CAG/C,OACE,oBAAC,gBAAD;EACE,kBAAiB;EACjB,aAAa;EACb,aAAY;EACZ,WAAW;GACT,GAAG;GACH,WAAW,KACT,kCACA,YAAY,WACZ,oCACF;GACA,MAAM,YAAY,QAAQ;GAC1B,OAAO,IAAI,OAAO;EACpB;EACA,UAAU;EACV,UAAU,OAAO;EACjB,mBAAkB;EAClB,OACE,oBAAC,wBAAD,EAAA,UACE,oBAAC,0BAAD,EAA0B,sBAAsB,OAAO,qBAAuB,CAAA,EACxD,CAAA;EAE1B,gBAAe;CAChB,CAAA;AAEL"}