You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
581 B
17 lines
581 B
1 year ago
|
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;
|
||
|
}
|
||
|
}
|