import Memory from "./metrics/memory"; import Cpu from "./metrics/cpu"; import Sensor from "./metrics/sensor"; import Net from "./metrics/net"; import Process from "./metrics/process"; import Disk from "./metrics/disk"; import GPU from "./metrics/gpu"; import Info from "./metrics/info"; import Fs from "./metrics/fs"; export default function Component({ service }) { const { widget } = service; if (widget.metric === "info") { return ; } if (widget.metric === "memory") { return ; } if (widget.metric === "process") { return ; } if (widget.metric === "cpu") { return ; } if (widget.metric.match(/^network:/)) { return ; } if (widget.metric.match(/^sensor:/)) { return ; } if (widget.metric.match(/^disk:/)) { return ; } if (widget.metric.match(/^gpu:/)) { return ; } if (widget.metric.match(/^fs:/)) { return ; } }