1
0
mirror of https://github.com/karl0ss/homepage.git synced 2025-07-20 15:55:00 +01:00
2023-08-13 09:24:03 -07:00

17 lines
581 B
JavaScript

import ServicesGetStatus from "./methods/services_get_status";
import SmartGetList from "./methods/smart_get_list";
import DownloaderGetDownloadList from "./methods/downloader_get_downloadlist";
export default function Component({ service }) {
switch (service.widget.method) {
case "services.getStatus":
return <ServicesGetStatus service={service} />;
case "smart.getListBg":
return <SmartGetList service={service} />;
case "downloader.getDownloadList":
return <DownloaderGetDownloadList service={service} />;
default:
return null;
}
}