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 { useEnvironment } from '@/react/portainer/environments/queries'; import { useEnvironmentId } from '@/react/hooks/useEnvironmentId'; import { Icon } from '@@/Icon'; import { Tooltip } from '@@/Tip/Tooltip'; import { TableColumnHeaderAngular, TableColumnHeaderAngularProps, } from '@@/datatables/TableHeaderCell'; export function TableColumnHeaderImageUpToDate({ canSort, isSorted, colTitle, isSortedDesc = true, }: TableColumnHeaderAngularProps) { return ( ); } export function ImageUpToDateTooltip() { const environmentId = useEnvironmentId(); const enableImageNotificationQuery = useEnvironment( environmentId, (environment) => environment?.EnableImageNotification ); if (!enableImageNotificationQuery.data) { return null; } return (
Images are up to date
Updates are available
Updates availability unknown
} /> ); }