import { useCurrentStateAndParams } from '@uirouter/react'; import { History } from 'lucide-react'; import { WidgetIcon } from '@@/Widget/WidgetIcon'; import { HelmRelease } from '../types'; import { HelmRevisionItem } from './HelmRevisionItem'; export function HelmRevisionList({ currentRevision, history, }: { currentRevision?: number; history: HelmRelease[] | undefined; }) { const { params } = useCurrentStateAndParams(); const { name, namespace } = params; if (!history) { return null; } return (

Revisions

{history?.map((historyItem) => ( ))}
); }