mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
18 lines
430 B
TypeScript
18 lines
430 B
TypeScript
import { humanize } from '@/portainer/filters/filters';
|
|
|
|
interface Props {
|
|
imagesTotalSize: number;
|
|
}
|
|
|
|
export function useImagesTotalSizeComponent(imagesTotalSize: number) {
|
|
return <ImagesTotalSize imagesTotalSize={imagesTotalSize} />;
|
|
}
|
|
|
|
export function ImagesTotalSize({ imagesTotalSize }: Props) {
|
|
return (
|
|
<div>
|
|
<i className="fa fa-chart-pie space-right" />
|
|
{humanize(imagesTotalSize)}
|
|
</div>
|
|
);
|
|
}
|