{"version":3,"file":"ChannelListHeader.mjs","names":[],"sources":["../../../../src/components/ChannelList/ChannelListHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { useTranslationContext } from '../../context';\n\nexport type ChannelListHeaderProps = {\n  /** Rendered at the end of the header, after the title. No default. */\n  EndContent?: React.ComponentType;\n  /** Rendered at the start of the header, before the title. No default. */\n  StartContent?: React.ComponentType;\n};\n\n/** Header of the channel list: the \"Chats\" title, with optional start and end content. */\nexport const ChannelListHeader = ({\n  EndContent,\n  StartContent,\n}: ChannelListHeaderProps) => {\n  const { t } = useTranslationContext();\n  return (\n    <div className='str-chat__channel-list__header'>\n      {StartContent && <StartContent />}\n      <div className='str-chat__channel-list__header__title'>\n        {t('channelList.header.chats.text', 'Chats')}\n      </div>\n      {EndContent && <EndContent />}\n    </div>\n  );\n};\n"],"mappings":";;;;;AAWA,IAAa,qBAAqB,EAChC,YACA,mBAC4B;CAC5B,MAAM,EAAE,MAAM,sBAAsB;CACpC,OACE,qBAAC,OAAD;EAAK,WAAU;YAAf;GACG,gBAAgB,oBAAC,cAAD,CAAe,CAAA;GAChC,oBAAC,OAAD;IAAK,WAAU;cACZ,EAAE,iCAAiC,OAAO;GACxC,CAAA;GACJ,cAAc,oBAAC,YAAD,CAAa,CAAA;EACzB;;AAET"}