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.

652 B
Raw Blame
"use client";

import { useRouter } from "next/navigation";

import type { IntegrationKind } from "@homarr/definitions";

import { IntegrationSelectGrid } from "~/components/integration/integration-select-grid";

interface IntegrationNewSelectGridProps {
  enableMockIntegration: boolean;
}

export const IntegrationNewSelectGrid = ({ enableMockIntegration }: IntegrationNewSelectGridProps) => {
  const router = useRouter();

  const handleSelect = (kind: IntegrationKind) => {
    router.push(`/manage/integrations/new?kind=${kind}`);
  };

  return <IntegrationSelectGrid onSelect={handleSelect} enableMockIntegration={enableMockIntegration} />;
};