InfoPanel.tsx 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. import { RiBookOpenLine } from '@remixicon/react'
  2. import { useTranslation } from 'react-i18next'
  3. const InfoPanel = () => {
  4. const { t } = useTranslation()
  5. return (
  6. <div className='flex w-[360px] pt-[108px] pb-2 pr-8 flex-col items-start'>
  7. <div className='flex min-w-[240px] w-full p-6 flex-col items-start gap-3 self-stretch rounded-xl bg-background-section'>
  8. <div className='flex p-1 w-10 h-10 justify-center items-center gap-2 flex-grow self-stretch rounded-lg border-[0.5px] border-components-card-border bg-components-card-bg'>
  9. <RiBookOpenLine className='w-5 h-5 text-text-accent' />
  10. </div>
  11. <p className='flex flex-col items-start gap-2 self-stretch'>
  12. <span className='self-stretch text-text-secondary system-xl-semibold'>
  13. {t('dataset.connectDatasetIntro.title')}
  14. </span>
  15. <span className='text-text-tertiary system-sm-regular'>
  16. {t('dataset.connectDatasetIntro.content.front')}
  17. <a className='text-text-accent system-sm-regular ml-1' href='https://docs.dify.ai/guides/knowledge-base/external-knowledge-api-documentation' target='_blank' rel="noopener noreferrer">
  18. {t('dataset.connectDatasetIntro.content.link')}
  19. </a>
  20. {t('dataset.connectDatasetIntro.content.end')}
  21. </span>
  22. <a className='self-stretch text-text-accent system-sm-regular' href='https://docs.dify.ai/guides/knowledge-base/connect-external-knowledge' target='_blank' rel="noopener noreferrer">
  23. {t('dataset.connectDatasetIntro.learnMore')}
  24. </a>
  25. </p>
  26. </div>
  27. </div>
  28. )
  29. }
  30. export default InfoPanel