Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

582 B
Raw Blame
import type { ComponentType } from "react";

import { createCustomJsxBindings, createCustomJsxComponents } from "@homarr/custom-widgets/jsx";

import { SafeTablerIcon } from "./jsx-icon-adapter";

// Labels are replaced by the localized runtime adapter in the renderer. These
// fallbacks are used only in isolated component-map tests.
export const createCustomWidgetComponents = (copyLabels: { copy: string; copied: string }) =>
  createCustomJsxComponents({ TablerIcon: SafeTablerIcon as ComponentType<never>, copyLabels });

export const SAFE_BINDINGS = createCustomJsxBindings;