import { Navigate, createFileRoute } from "@tanstack/react-router"; import { useQuery } from "@tanstack/react-query"; import { GithubLogoIcon, KanbanIcon, SlackLogoIcon } from "@phosphor-icons/react"; import type { ComponentType } from "react"; import type { ReposPayload } from "@/lib/api"; import { AppShell, SettingsSection } from "@/components/AppShell"; import { Skeleton } from "@/components/ui/skeleton"; import { ApiError, api } from "@/lib/api"; import { useSession } from "@/lib/session"; import { cn } from "@/lib/utils"; export const Route = createFileRoute("/integrations")({ component: IntegrationsPage }); type IconType = ComponentType<{ className?: string; weight?: "regular" | "fill" | "duotone" }>; interface IntegrationRowProps { icon: IconType; name: string; description: string; connected: boolean; badge?: string; } function IntegrationRow({ icon: Icon, name, description, connected, badge }: IntegrationRowProps) { return (
{description}