import Link from "next/link"; import { Anchor, Button, Stack, Text } from "@mantine/core"; import type { stringOrTranslation } from "@homarr/translation"; import { translateIfNecessary } from "@homarr/translation"; import { useI18n } from "@homarr/translation/client"; import type { TablerIcon } from "@homarr/ui"; interface BaseWidgetErrorProps { icon: TablerIcon; message: stringOrTranslation; showLogsLink?: boolean; onRetry: () => void; } export const BaseWidgetError = (props: BaseWidgetErrorProps) => { const t = useI18n(); return ( {translateIfNecessary(t, props.message)} {props.showLogsLink && ( {t("widget.common.error.action.logs")} )} ); };