mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
27 lines
675 B
TypeScript
27 lines
675 B
TypeScript
import { Widget, WidgetBody } from '@@/Widget';
|
|
|
|
interface Props {
|
|
value: number;
|
|
icon: string;
|
|
type: string;
|
|
}
|
|
|
|
export function DashboardItem({ value, icon, type }: Props) {
|
|
return (
|
|
<div className="col-sm-12 col-md-6" aria-label={type}>
|
|
<Widget>
|
|
<WidgetBody>
|
|
<div className="widget-icon blue pull-left">
|
|
<i className={icon} aria-hidden="true" aria-label="icon" />
|
|
</div>
|
|
<div className="title" aria-label="value">
|
|
{value}
|
|
</div>
|
|
<div className="comment" aria-label="resourceType">
|
|
{type}
|
|
</div>
|
|
</WidgetBody>
|
|
</Widget>
|
|
</div>
|
|
);
|
|
}
|