crawling.tsx 977 B

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import { RowStruct } from '@/app/components/base/icons/src/public/other'
  6. type Props = {
  7. className?: string
  8. crawledNum: number
  9. totalNum: number
  10. }
  11. const Crawling: FC<Props> = ({
  12. className = '',
  13. crawledNum,
  14. totalNum,
  15. }) => {
  16. const { t } = useTranslation()
  17. return (
  18. <div className={className}>
  19. <div className='flex items-center h-[34px] px-4 shadow-xs shadow-shadow-shadow-3
  20. border-y-[0.5px] border-divider-regular text-xs text-text-tertiary'>
  21. {t('datasetCreation.stepOne.website.totalPageScraped')} {crawledNum}/{totalNum}
  22. </div>
  23. <div className='p-2'>
  24. {['', '', '', ''].map((item, index) => (
  25. <div className='py-[5px]' key={index}>
  26. <RowStruct className='text-text-quaternary' />
  27. </div>
  28. ))}
  29. </div>
  30. </div>
  31. )
  32. }
  33. export default React.memo(Crawling)