Files
homepage/src/widgets/openmediavault/component.jsx
shamoon eda06965fa
Some checks are pending
Docker CI / Linting Checks (push) Waiting to run
Docker CI / Docker Build & Push (push) Blocked by required conditions
Chore: add organize imports to pre-commit (#5104)
2025-03-30 21:40:03 -07:00

17 lines
581 B
JavaScript

import DownloaderGetDownloadList from "./methods/downloader_get_downloadlist";
import ServicesGetStatus from "./methods/services_get_status";
import SmartGetList from "./methods/smart_get_list";
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;
}
}