index.tsx 894 B

12345678910111213141516171819202122
  1. 'use client'
  2. import React, { type FC } from 'react'
  3. import { useTranslation } from 'react-i18next'
  4. import { Microphone01 } from '@/app/components/base/icons/src/vender/solid/mediaAndDevices'
  5. const SpeechToTextConfig: FC = () => {
  6. const { t } = useTranslation()
  7. return (
  8. <div className='flex items-center px-3 h-12 bg-gray-50 rounded-xl overflow-hidden'>
  9. <div className='shrink-0 flex items-center justify-center mr-1 w-6 h-6'>
  10. <Microphone01 className='w-4 h-4 text-[#7839EE]' />
  11. </div>
  12. <div className='shrink-0 mr-2 flex items-center whitespace-nowrap text-sm text-gray-800 font-semibold'>
  13. <div>{t('appDebug.feature.speechToText.title')}</div>
  14. </div>
  15. <div className='grow'></div>
  16. <div className='text-xs text-gray-500'>{t('appDebug.feature.speechToText.resDes')}</div>
  17. </div>
  18. )
  19. }
  20. export default React.memo(SpeechToTextConfig)