import Sonarr from "./widgets/sonarr";
import Radarr from "./widgets/radarr";
import Ombi from "./widgets/ombi";
import Portainer from "./widgets/portainer";
const widgetMappings = {
sonarr: Sonarr,
radarr: Radarr,
ombi: Ombi,
portainer: Portainer,
};
export default function Widget({ service }) {
const ServiceWidget = widgetMappings[service.widget.type];
if (ServiceWidget) {
return