import useSWR from "swr"; import { useTranslation } from "react-i18next"; import Widget from "../widget"; import Block from "../block"; import { formatApiUrl } from "utils/api-helpers"; export default function Overseerr({ service }) { const { t } = useTranslation(); const config = service.widget; const { data: statsData, error: statsError } = useSWR(formatApiUrl(config, `request/count`)); if (statsError) { return ; } if (!statsData) { return ( ); } return ( ); }