2022-11-28 02:00:28 +00:00
|
|
|
import { Power } from 'lucide-react';
|
|
|
|
|
2022-12-07 14:51:20 +00:00
|
|
|
import { StatsItem } from '@@/StatsItem';
|
2022-11-28 02:00:28 +00:00
|
|
|
|
2022-11-13 10:29:25 +00:00
|
|
|
interface Props {
|
|
|
|
running: number;
|
|
|
|
stopped: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function RunningStatus({ running, stopped }: Props) {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
2022-12-07 14:51:20 +00:00
|
|
|
<StatsItem
|
|
|
|
value={`${running || '-'} running`}
|
|
|
|
icon={Power}
|
|
|
|
iconClass="icon-success"
|
|
|
|
/>
|
2022-11-13 10:29:25 +00:00
|
|
|
{`${running || '-'} running`}
|
|
|
|
</div>
|
|
|
|
<div>
|
2022-12-07 14:51:20 +00:00
|
|
|
<StatsItem
|
|
|
|
value={`${stopped || '-'} stopped`}
|
|
|
|
icon={Power}
|
|
|
|
iconClass="icon-danger"
|
|
|
|
/>
|
2022-11-13 10:29:25 +00:00
|
|
|
{`${stopped || '-'} stopped`}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|