mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-24 05:48:08 +08:00
Some checks failed
Crowdin Action / Crowdin Sync (push) Has been cancelled
Docker CI / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Repository Maintenance / Close Answered Discussions (push) Has been cancelled
Repository Maintenance / Stale (push) Has been cancelled
Repository Maintenance / Lock Old Threads (push) Has been cancelled
Repository Maintenance / Close Outdated Discussions (push) Has been cancelled
Repository Maintenance / Close Unsupported Feature Requests (push) Has been cancelled
18 lines
509 B
JavaScript
18 lines
509 B
JavaScript
import { useTranslation } from "next-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>
|
|
);
|
|
}
|