dify/web/app/components/datasets/create/website/base/crawling.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

34 lines
1007 B
TypeScript

'use client'
import type { FC } from 'react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import { RowStruct } from '@/app/components/base/icons/src/public/other'
type Props = Readonly<{
className?: string
crawledNum: number
totalNum: number
}>
const Crawling: FC<Props> = ({ className = '', crawledNum, totalNum }) => {
const { t } = useTranslation()
return (
<div className={className}>
<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">
{t(($) => $['stepOne.website.totalPageScraped'], { ns: 'datasetCreation' })} {crawledNum}/
{totalNum}
</div>
<div className="p-2">
{['', '', '', ''].map((item, index) => (
<div className="py-[5px]" key={index}>
<RowStruct className="text-text-quaternary" />
</div>
))}
</div>
</div>
)
}
export default React.memo(Crawling)