mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add FilesTable #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
28 lines
740 B
TypeScript
28 lines
740 B
TypeScript
import { PropsWithChildren } from 'react';
|
|
import { SkeletonCard } from './skeleton-card';
|
|
import { TableCell, TableRow } from './ui/table';
|
|
|
|
type IProps = { columnsLength: number };
|
|
|
|
function Row({ children, columnsLength }: PropsWithChildren & IProps) {
|
|
return (
|
|
<TableRow>
|
|
<TableCell colSpan={columnsLength} className="h-24 text-center ">
|
|
{children}
|
|
</TableCell>
|
|
</TableRow>
|
|
);
|
|
}
|
|
|
|
export function TableSkeleton({ columnsLength }: { columnsLength: number }) {
|
|
return (
|
|
<Row columnsLength={columnsLength}>
|
|
<SkeletonCard></SkeletonCard>
|
|
</Row>
|
|
);
|
|
}
|
|
|
|
export function TableEmpty({ columnsLength }: { columnsLength: number }) {
|
|
return <Row columnsLength={columnsLength}>No results.</Row>;
|
|
}
|