You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/docker/components/ImageStatus/helpers.ts

21 lines
548 B

import { Loader } from 'lucide-react';
import UpdatesAvailable from '@/assets/ico/icon_updates-available.svg?c';
import UpToDate from '@/assets/ico/icon_up-to-date.svg?c';
import UpdatesUnknown from '@/assets/ico/icon_updates-unknown.svg?c';
import { ImageStatus } from './types';
export function statusIcon(status: ImageStatus) {
switch (status.Status) {
case 'outdated':
return UpdatesAvailable;
case 'updated':
return UpToDate;
case 'processing':
return Loader;
default:
return UpdatesUnknown;
}
}