mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
refactor(icons): remove fontawesome EE-4459 refactor(icon) replace feather with lucide EE-4472
22 lines
584 B
TypeScript
22 lines
584 B
TypeScript
import clsx from 'clsx';
|
|
import { PieChart } from 'lucide-react';
|
|
|
|
import { Icon } from '@/react/components/Icon';
|
|
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 className="vertical-center">
|
|
<Icon icon={PieChart} className={clsx('space-right')} />
|
|
{humanize(imagesTotalSize)}
|
|
</div>
|
|
);
|
|
}
|