import clsx from 'clsx'; import { DownloadCloud } from 'lucide-react'; import { useUIState } from '@/react/hooks/useUIState'; import { useSystemVersion } from '@/react/portainer/system/useSystemVersion'; import { Icon } from '@@/Icon'; import styles from './UpdateNotifications.module.css'; export function UpdateNotification() { const uiStateStore = useUIState(); const query = useSystemVersion(); if (!query.data || !query.data.UpdateAvailable) { return null; } const { LatestVersion } = query.data; if ( !!uiStateStore.dismissedUpdateVersion && LatestVersion?.length > 0 && uiStateStore.dismissedUpdateVersion === LatestVersion ) { return null; } return (