{"version":3,"file":"ThreadListHeader.mjs","names":[],"sources":["../../../../../src/components/Threads/ThreadList/ThreadListHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { useTranslationContext } from '../../../context';\n\nexport type ThreadListHeaderProps = {\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 thread list: the \"Threads\" title, with optional start and end content. */\nexport const ThreadListHeader = ({ EndContent, StartContent }: ThreadListHeaderProps) => {\n  const { t } = useTranslationContext();\n  return (\n    <div className='str-chat__thread-list__header'>\n      {StartContent && <StartContent />}\n      <div className='str-chat__thread-list__header__title'>\n        {t('common.threads.text', 'Threads')}\n      </div>\n      {EndContent && <EndContent />}\n    </div>\n  );\n};\n"],"mappings":";;;;;AAWA,IAAa,oBAAoB,EAAE,YAAY,mBAA0C;CACvF,MAAM,EAAE,MAAM,sBAAsB;CACpC,OACE,qBAAC,OAAD;EAAK,WAAU;YAAf;GACG,gBAAgB,oBAAC,cAAD,CAAe,CAAA;GAChC,oBAAC,OAAD;IAAK,WAAU;cACZ,EAAE,uBAAuB,SAAS;GAChC,CAAA;GACJ,cAAc,oBAAC,YAAD,CAAa,CAAA;EACzB;;AAET"}