crawling.tsx 991 B

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import cn from '@/utils/classnames'
  6. import { RowStruct } from '@/app/components/base/icons/src/public/other'
  7. type Props = {
  8. className?: string
  9. crawledNum: number
  10. totalNum: number
  11. }
  12. const Crawling: FC<Props> = ({
  13. className = '',
  14. crawledNum,
  15. totalNum,
  16. }) => {
  17. const { t } = useTranslation()
  18. return (
  19. <div className={cn(className, 'border-t border-gray-200')}>
  20. <div className='flex items-center h-[34px] px-4 bg-gray-50 shadow-xs border-b-[0.5px] border-black/8 text-xs font-normal text-gray-700'>
  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 />
  27. </div>
  28. ))}
  29. </div>
  30. </div>
  31. )
  32. }
  33. export default React.memo(Crawling)