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