import ErrorBoundary from "components/errorboundry"; import { useTranslation } from "next-i18next"; import components from "widgets/components"; export default function Widget({ widget, service }) { const { t } = useTranslation("common"); const ServiceWidget = components[widget.type]; const fullService = { ...service, widget }; if (ServiceWidget) { return ( ); } return (
{t("widget.missing_type", { type: widget.type })}
); }