2024-06-14 22:02:41 +08:00
|
|
|
'use client'
|
|
|
|
import type { FC } from 'react'
|
|
|
|
import React from 'react'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
import { RowStruct } from '@/app/components/base/icons/src/public/other'
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
className?: string
|
|
|
|
crawledNum: number
|
|
|
|
totalNum: number
|
|
|
|
}
|
|
|
|
|
|
|
|
const Crawling: FC<Props> = ({
|
|
|
|
className = '',
|
|
|
|
crawledNum,
|
|
|
|
totalNum,
|
|
|
|
}) => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
|
|
return (
|
2025-03-19 11:19:57 +08:00
|
|
|
<div className={className}>
|
2025-03-21 17:41:03 +08:00
|
|
|
<div className='flex h-[34px] items-center border-y-[0.5px] border-divider-regular px-4
|
|
|
|
text-xs text-text-tertiary shadow-xs shadow-shadow-shadow-3'>
|
2024-06-14 22:02:41 +08:00
|
|
|
{t('datasetCreation.stepOne.website.totalPageScraped')} {crawledNum}/{totalNum}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className='p-2'>
|
|
|
|
{['', '', '', ''].map((item, index) => (
|
|
|
|
<div className='py-[5px]' key={index}>
|
2025-03-19 11:19:57 +08:00
|
|
|
<RowStruct className='text-text-quaternary' />
|
2024-06-14 22:02:41 +08:00
|
|
|
</div>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
export default React.memo(Crawling)
|