no-data.tsx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import { Icon3Dots } from '@/app/components/base/icons/src/vender/line/others'
  6. import Button from '@/app/components/base/button'
  7. const I18N_PREFIX = 'datasetCreation.stepOne.website'
  8. type Props = {
  9. onConfig: () => void
  10. }
  11. const NoData: FC<Props> = ({
  12. onConfig,
  13. }) => {
  14. const { t } = useTranslation()
  15. return (
  16. <div className='max-w-[640px] p-6 rounded-2xl bg-gray-50'>
  17. <div className='flex w-11 h-11 items-center justify-center bg-gray-50 rounded-xl border-[0.5px] border-gray-100 shadow-lg'>
  18. 🔥
  19. </div>
  20. <div className='my-2'>
  21. <span className='text-gray-700 font-semibold'>{t(`${I18N_PREFIX}.fireCrawlNotConfigured`)}<Icon3Dots className='inline relative -top-3 -left-1.5' /></span>
  22. <div className='mt-1 pb-3 text-gray-500 text-[13px] font-normal'>
  23. {t(`${I18N_PREFIX}.fireCrawlNotConfiguredDescription`)}
  24. </div>
  25. </div>
  26. <Button variant='primary' onClick={onConfig}>
  27. {t(`${I18N_PREFIX}.configure`)}
  28. </Button>
  29. </div>
  30. )
  31. }
  32. export default React.memo(NoData)