ragflow/web/src/pages/chunk/chunk-card.tsx
balibabu b4ad565df6
Feat: Add ParsedPageCard component #3221 (#4976)
### What problem does this PR solve?

Feat: Add ParsedPageCard component #3221
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-02-14 18:12:39 +08:00

35 lines
1.0 KiB
TypeScript

import { Card, CardContent } from '@/components/ui/card';
interface ParsedPageCardProps {
page: string;
content: string;
}
export function ParsedPageCard({ page, content }: ParsedPageCardProps) {
return (
<Card className="bg-colors-outline-neutral-standard border-colors-outline-neutral-strong rounded-3xl">
<CardContent className="p-4">
<p className="text-colors-text-neutral-standard text-base">{page}</p>
<div className="text-colors-text-neutral-strong text-lg mt-2">
{content}
</div>
</CardContent>
</Card>
);
}
interface ChunkCardProps {
activated: boolean;
}
export function ChunkCard({}: ChunkCardProps) {
return (
<Card className="bg-colors-outline-neutral-standard border-colors-outline-neutral-strong rounded-3xl">
<CardContent className="p-4">
<p className="text-colors-text-neutral-standard text-base">{}</p>
<div className="text-colors-text-neutral-strong text-lg mt-2">{}</div>
</CardContent>
</Card>
);
}