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.

623 B
Raw Blame
"use client";

import dynamic from "next/dynamic";

import type { WidgetComponentProps } from "@homarr/widgets";

/**
 * Boards register a renderer for the assistant widget even when no board uses one. Loading the
 * renderer lazily keeps the conversation surface out of the board bundle until a board actually
 * places an assistant widget.
 */
const LazyAssistantBoardWidget = dynamic(() =>
  import("./assistant-widget").then((module) => ({ default: module.AssistantBoardWidget })),
);

export const AssistantBoardWidgetLazy = (props: WidgetComponentProps<"assistant">) => (
  <LazyAssistantBoardWidget {...props} />
);