mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-12 17:47:03 +01:00
20 lines
491 B
TypeScript
20 lines
491 B
TypeScript
import { IconDatabaseOff } from "@tabler/icons-react";
|
|
|
|
import type { TranslationFunction } from "@homarr/translation";
|
|
|
|
import { ErrorBoundaryError } from "./base";
|
|
|
|
export class NoIntegrationDataError extends ErrorBoundaryError {
|
|
constructor() {
|
|
super("No integration data available");
|
|
}
|
|
|
|
public getErrorBoundaryData() {
|
|
return {
|
|
icon: IconDatabaseOff,
|
|
message: (t: TranslationFunction) => t("widget.common.error.noData"),
|
|
showLogsLink: false,
|
|
};
|
|
}
|
|
}
|