mirror of https://github.com/portainer/portainer
19 lines
430 B
TypeScript
19 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>
|
||
|
);
|
||
|
}
|