dify/web/app/components/datasets/documents/detail/completed/skeleton/parent-chunk-card-skeleton.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

50 lines
1.8 KiB
TypeScript

import * as React from 'react'
import { useTranslation } from 'react-i18next'
import {
SkeletonContainer,
SkeletonPoint,
SkeletonRectangle,
SkeletonRow,
} from '@/app/components/base/skeleton'
const ParentChunkCardSkelton = () => {
const { t } = useTranslation()
return (
<div data-testid="parent-chunk-card-skeleton" className="flex flex-col pb-2">
<SkeletonContainer className="gap-y-0 p-1 pb-0">
<SkeletonContainer className="gap-y-0.5 px-2 pt-1.5">
<SkeletonRow className="py-0.5">
<SkeletonRectangle className="w-[72px] bg-text-quaternary" />
<SkeletonPoint className="opacity-20" />
<SkeletonRectangle className="w-24 bg-text-quaternary" />
<SkeletonPoint className="opacity-20" />
<SkeletonRectangle className="w-24 bg-text-quaternary" />
</SkeletonRow>
<SkeletonRow className="py-0.5">
<SkeletonRectangle className="w-full bg-text-quaternary" />
</SkeletonRow>
<SkeletonRow className="py-0.5">
<SkeletonRectangle className="w-full bg-text-quaternary" />
</SkeletonRow>
<SkeletonRow className="py-0.5">
<SkeletonRectangle className="w-2/3 bg-text-quaternary" />
</SkeletonRow>
</SkeletonContainer>
</SkeletonContainer>
<div className="mt-0.5 flex items-center px-3">
<button
type="button"
className="pt-0.5 system-xs-semibold-uppercase text-components-button-secondary-accent-text-disabled"
disabled
>
{t(($) => $['operation.viewMore'], { ns: 'common' })}
</button>
</div>
</div>
)
}
ParentChunkCardSkelton.displayName = 'ParentChunkCardSkelton'
export default React.memo(ParentChunkCardSkelton)