Co-authored-by: Meier Lukas <meierschlumpf@gmail.com> Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com>
21 lines
672 B
TypeScript
21 lines
672 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,
|
|
createOptions() {
|
|
return optionsBuilder.from(() => ({}));
|
|
},
|
|
supportedIntegrations: getIntegrationKindsByCategory("firewall"),
|
|
errors: {
|
|
INTERNAL_SERVER_ERROR: {
|
|
icon: IconWallOff,
|
|
message: (t) => t("widget.firewall.error.internalServerError"),
|
|
},
|
|
},
|
|
}).withDynamicImport(() => import("./component"));
|