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.
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { BiError } from "react-icons/bi";
|
|
|
|
|
|
|
|
import Container from "./container";
|
|
|
|
import PrimaryText from "./primary_text";
|
|
|
|
import WidgetIcon from "./widget_icon";
|
|
|
|
|
|
|
|
export default function Error({ options }) {
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
return <Container options={options} additionalClassNames="information-widget-error">
|
|
|
|
<PrimaryText>{t("widget.api_error")}</PrimaryText>
|
|
|
|
<WidgetIcon icon={BiError} size="l" />
|
|
|
|
</Container>;
|
|
|
|
}
|