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.

620 B
Raw Blame
import type { PropsWithChildren } from "react";

import { widgetKinds } from "@homarr/definitions";
import { widgetCatalogIcons } from "@homarr/ui/widget-icons";

import { MainNavigation } from "~/components/layout/navigation";
import { ClientShell } from "~/components/layout/shell";

const links = widgetKinds.map((kind) => ({
  href: `/widgets/${kind}`,
  icon: widgetCatalogIcons[kind],
  label: kind,
}));

export default function WidgetPreviewLayout({ children }: PropsWithChildren) {
  return (
    <ClientShell hasHeader={false}>
      <MainNavigation links={links} />
      {children}
    </ClientShell>
  );
}