1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-26 00:39:41 +02:00
portainer/app/react/nomad/DashboardView/RunningStatus.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
446 B
TypeScript
Raw Normal View History

import { Power } from 'lucide-react';
import { Icon } from '@@/Icon';
interface Props {
running: number;
stopped: number;
}
export function RunningStatus({ running, stopped }: Props) {
return (
<div>
<div>
<Icon icon={Power} mode="success" />
{`${running || '-'} running`}
</div>
<div>
<Icon icon={Power} mode="danger" />
{`${stopped || '-'} stopped`}
</div>
</div>
);
}