mirror of
https://github.com/ajnart/homarr.git
synced 2026-05-05 22:26:56 +02:00
18 lines
568 B
TypeScript
18 lines
568 B
TypeScript
|
|
import { IconBrandDocker, IconServerOff } from "@tabler/icons-react";
|
||
|
|
|
||
|
|
import { createWidgetDefinition } from "../definition";
|
||
|
|
import { optionsBuilder } from "../options";
|
||
|
|
|
||
|
|
export const { definition, componentLoader } = createWidgetDefinition("dockerContainers", {
|
||
|
|
icon: IconBrandDocker,
|
||
|
|
createOptions() {
|
||
|
|
return optionsBuilder.from(() => ({}));
|
||
|
|
},
|
||
|
|
errors: {
|
||
|
|
INTERNAL_SERVER_ERROR: {
|
||
|
|
icon: IconServerOff,
|
||
|
|
message: (t) => t("widget.dockerContainers.error.internalServerError"),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}).withDynamicImport(() => import("./component"));
|