mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: Added UI functions related to data-flow knowledge base #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
22 lines
521 B
TypeScript
22 lines
521 B
TypeScript
import { formatDate } from '@/utils/date';
|
||
import { formatBytes } from '@/utils/file-util';
|
||
|
||
type Props = {
|
||
size: number;
|
||
name: string;
|
||
create_date: string;
|
||
};
|
||
|
||
export default ({ size, name, create_date }: Props) => {
|
||
const sizeName = formatBytes(size);
|
||
const dateStr = formatDate(create_date);
|
||
return (
|
||
<div>
|
||
<h2 className="text-[16px]">{name}</h2>
|
||
<div className="text-text-secondary text-[12px] pt-[5px]">
|
||
Size:{sizeName} Uploaded Time:{dateStr}
|
||
</div>
|
||
</div>
|
||
);
|
||
};
|