running-title.tsx 773 B

123456789101112131415161718192021222324
  1. import { memo } from 'react'
  2. import { useTranslation } from 'react-i18next'
  3. import { useStore as useAppStore } from '@/app/components/app/store'
  4. import { Play } from '@/app/components/base/icons/src/vender/solid/mediaAndDevices'
  5. const RunningTitle = () => {
  6. const { t } = useTranslation()
  7. const appDetail = useAppStore(state => state.appDetail)
  8. return (
  9. <div className='flex items-center h-[18px] text-xs text-primary-600'>
  10. <Play className='mr-1 w-3 h-3' />
  11. {
  12. appDetail?.mode === 'advanced-chat'
  13. ? t('workflow.common.inPreviewMode')
  14. : t('workflow.common.inRunMode')
  15. }
  16. <span className='mx-1'>·</span>
  17. <span className='text-gray-500'>Test Run#2</span>
  18. </div>
  19. )
  20. }
  21. export default memo(RunningTitle)