Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
22 lines
694 B
TypeScript
22 lines
694 B
TypeScript
import { IconWall, IconWallOff } from "@tabler/icons-react";
|
|
|
|
import { getIntegrationKindsByCategory } from "@homarr/definitions";
|
|
|
|
import { createWidgetDefinition } from "../definition";
|
|
import { optionsBuilder } from "../options";
|
|
|
|
export const { definition, componentLoader } = createWidgetDefinition("firewall", {
|
|
icon: IconWall,
|
|
refetchInterval: 5,
|
|
createOptions() {
|
|
return optionsBuilder.from(() => ({}));
|
|
},
|
|
supportedIntegrations: getIntegrationKindsByCategory("firewall"),
|
|
errors: {
|
|
INTERNAL_SERVER_ERROR: {
|
|
icon: IconWallOff,
|
|
message: (t) => t("widget.firewall.error.internalServerError"),
|
|
},
|
|
},
|
|
}).withDynamicImport(() => import("./component"));
|