import { useEffect, useState, type ReactNode } from "react"; import TimeAgo from "../components/TimeAgo"; import WhatChanged from "../components/WhatChanged"; import { Link } from "react-router-dom"; import { api, type CurrentUser, type DomainList, type IntegrationSummary, type IntegrationType, type OsTicketTicketsResponse, type PbsDatastoresResponse, type SecretRecord, type ServerSummary, type TailscaleDevicesResponse, } from "../api/client"; import { formatAgo } from "../utils/duration"; import StatusStrip from "../components/StatusStrip"; import SetupGuide, { type SetupStep } from "../components/SetupGuide"; import { ErrorNotice } from "../components/Notice"; import { WidgetSkeleton } from "../components/Skeleton"; const DNS_TYPE_COLORS: Record = { A: "#60a5fa", AAAA: "#93c5fd", CNAME: "#c084fc", MX: "#4ade80", TXT: "#fb923c", NS: "#94a3b8", SRV: "#a3e635", CAA: "#f472b6", PTR: "#facc15", }; const SECRET_TYPE_LABELS: Record = { api_token: "API Token", ssl_certificate: "SSL Certificate", password: "Password", generic: "Generic", }; const SECRET_TYPE_COLORS: Record = { api_token: "#6366f1", ssl_certificate: "#22d3ee", password: "#f472b6", generic: "#94a3b8", }; const DOMAIN_STATE_COLORS: Record = { OK: "#4ade80", Expiring: "#fbbf24", Expired: "#f87171", "No date": "#94a3b8", }; const SERVER_STATE_COLORS: Record = { Online: "#4ade80", Offline: "#f87171", "No data": "#94a3b8", }; const MONITOR_STATE_COLORS: Record = { Up: "#4ade80", Down: "#f87171", Pending: "#fbbf24", Maintenance: "#60a5fa", Unknown: "#94a3b8", }; const CONTAINER_STATE_COLORS: Record = { running: "#4ade80", exited: "#f87171", dead: "#f87171", paused: "#fbbf24", restarting: "#60a5fa", }; const TASK_STATUS_COLORS: Record = { success: "#4ade80", error: "#f87171", stopped: "#94a3b8", rejected: "#94a3b8", waiting: "#fbbf24", starting: "#fbbf24", waiting_confirmation: "#fbbf24", confirmed: "#fbbf24", running: "#60a5fa", stopping: "#60a5fa", "never run": "#94a3b8", }; const REPO_STATUS_COLORS: Record = { success: "#4ade80", failure: "#f87171", cancelled: "#94a3b8", skipped: "#94a3b8", waiting: "#fbbf24", queued: "#fbbf24", pending: "#fbbf24", running: "#60a5fa", in_progress: "#60a5fa", "no runs": "#94a3b8", }; const GENERIC_PALETTE = ["#6366f1", "#22d3ee", "#f472b6", "#4ade80", "#fb923c", "#a3e635", "#c084fc", "#facc15", "#60a5fa"]; function paletteColors(labels: string[]): Record { const colors: Record = {}; labels.forEach((label, i) => { colors[label] = GENERIC_PALETTE[i % GENERIC_PALETTE.length]; }); return colors; } function healthColors(labels: string[]): Record { const colors: Record = {}; for (const label of labels) colors[label] = label === "normal" ? "#4ade80" : "#f87171"; return colors; } function SectionHeader({ title, hint }: { title: string; hint?: ReactNode }) { return (

{title}

{hint &&
{hint}
}
); } function breakdownFrom(items: T[], keyOf: (item: T) => string): { label: string; count: number }[] { const counts = new Map(); for (const item of items) { const key = keyOf(item); counts.set(key, (counts.get(key) ?? 0) + 1); } return [...counts.entries()].map(([label, count]) => ({ label, count })).sort((a, b) => b.count - a.count); } function BreakdownBar({ data, colors, compact }: { data: { label: string; count: number }[]; colors: Record; compact?: boolean }) { const total = data.reduce((s, d) => s + d.count, 0); if (total === 0) return null; return (
{data.map((d) => (
))}
{data.map((d) => (
{d.label} {compact ? `(${d.count})` : ({d.count})}
))}
); } function MiniStat({ label, value, accent }: { label: string; value: ReactNode; accent?: string }) { return (
{value}
{label}
); } /** The single card shape shared by every dashboard widget — DNS, Secrets, and each integration — so they all read as one family: a label + status badge, then whatever stats/breakdown that widget has. */ function WidgetCard({ label, badge, hide, children }: { label: string; badge?: ReactNode; /** Nothing is set up for this yet: it is listed under "Not set up yet" instead of taking a card. */ hide?: boolean; children: ReactNode }) { if (hide) return null; return (
{label}
{badge &&
{badge}
}
{children}
); } const WIDGETS: { type: IntegrationType; label: string }[] = [ { type: "proxmox", label: "Proxmox" }, { type: "synology", label: "Synology NAS" }, { type: "semaphore", label: "Semaphore" }, { type: "tailscale", label: "Tailscale" }, { type: "gitea", label: "Gitea" }, { type: "dockhand", label: "Dockhand / Docker" }, { type: "uptimekuma", label: "Uptime Kuma" }, { type: "pbs", label: "Proxmox Backup Server" }, { type: "osticket", label: "osTicket" }, ]; interface UptimeKumaSummary { up: number; down: number; total: number; matched: number; statusBreakdown: { label: string; count: number }[]; } interface OsTicketSummary { total: number; overdue: number; awaitingReply: number; } interface PbsSummary { datastoreCount: number; failedSnapshotCount: number; unverifiedSnapshotCount: number; } interface GiteaSummary { repoCount: number; privateCount: number; failing: number; statusBreakdown: { label: string; count: number }[]; } interface DockhandSummary { running: number; total: number; hostCount: number; updatesAvailable: number; stateBreakdown: { label: string; count: number }[]; } interface SemaphoreSummary { total: number; failing: number; statusBreakdown: { label: string; count: number }[]; } interface ProxmoxSummary { running: number; total: number; vmCount: number; lxcCount: number; nodeBreakdown: { label: string; count: number }[]; } interface SynologySummary { volumeCount: number; volumesNotNormal: number; disksNotNormal: number; cpuLoadPercent: number | null; memUsedBytes: number | null; memTotalBytes: number | null; diskStatusBreakdown: { label: string; count: number }[]; } interface TailscaleExtra { osBreakdown: { label: string; count: number }[]; } function formatBytes(bytes: number | null): string { if (bytes === null) return "—"; const units = ["B", "KB", "MB", "GB", "TB", "PB"]; let value = bytes; let unit = 0; while (value >= 1024 && unit < units.length - 1) { value /= 1024; unit++; } return `${value.toFixed(1)} ${units[unit]}`; } export default function Dashboard({ user }: { user: CurrentUser }) { const [integrations, setIntegrations] = useState(null); const [tailscaleSummary, setTailscaleSummary] = useState(null); const [tailscaleExtra, setTailscaleExtra] = useState(null); const [giteaSummary, setGiteaSummary] = useState(null); const [dockhandSummary, setDockhandSummary] = useState(null); const [semaphoreSummary, setSemaphoreSummary] = useState(null); const [proxmoxSummary, setProxmoxSummary] = useState(null); const [synologySummary, setSynologySummary] = useState(null); const [uptimeKumaSummary, setUptimeKumaSummary] = useState(null); const [pbsSummary, setPbsSummary] = useState(null); const [osTicketSummary, setOsTicketSummary] = useState(null); // For the getting-started guide; only an admin can read these, and only an admin has these steps to do. const isAdmin = user.role === "admin"; const [notifyConfigured, setNotifyConfigured] = useState(null); const [userCount, setUserCount] = useState(null); useEffect(() => { if (!isAdmin) return; api.settings .get() .then((res) => { const s = res.settings; setNotifyConfigured(s.gotify.enabled || s.ntfy.enabled || s.smtp.enabled || s.webhook.enabled); }) .catch(() => setNotifyConfigured(null)); api.users .list() .then((res) => setUserCount(res.users.length)) .catch(() => setUserCount(null)); }, [isAdmin]); const [dnsStats, setDnsStats] = useState> | null>(null); const [dnsError, setDnsError] = useState(null); const [secrets, setSecrets] = useState(null); const [serverSummary, setServerSummary] = useState(null); const [serverError, setServerError] = useState(null); const [domainList, setDomainList] = useState(null); const [domainError, setDomainError] = useState(null); useEffect(() => { api.domains .list() .then(setDomainList) .catch((err) => setDomainError(err instanceof Error ? err.message : String(err))); api.servers .summary() .then(setServerSummary) .catch((err) => setServerError(err instanceof Error ? err.message : String(err))); api.dns .stats() .then(setDnsStats) .catch((err) => setDnsError(err instanceof Error ? err.message : String(err))); api.secrets .list() .then((res) => setSecrets(res.secrets)) .catch(() => setSecrets([])); }, []); useEffect(() => { api.integrations.list().then((res) => setIntegrations(res.integrations)); }, []); useEffect(() => { const tailscale = integrations?.find((i) => i.type === "tailscale" && i.enabled); if (!tailscale) { setTailscaleSummary(null); return; } api.integrations.tailscale .devices(tailscale.id) .then((res) => { setTailscaleSummary(res.summary); setTailscaleExtra({ osBreakdown: breakdownFrom(res.devices, (d) => d.os || "unknown") }); }) .catch(() => { setTailscaleSummary(null); setTailscaleExtra(null); }); }, [integrations]); useEffect(() => { const gitea = integrations?.find((i) => i.type === "gitea" && i.enabled); if (!gitea) { setGiteaSummary(null); return; } api.integrations.gitea .repos(gitea.id) .then((res) => setGiteaSummary({ repoCount: res.repos.length, privateCount: res.repos.filter((r) => r.private).length, failing: res.repos.filter((r) => r.latestRun?.conclusion === "failure" || r.latestRun?.status === "failure").length, statusBreakdown: breakdownFrom(res.repos, (r) => (r.latestRun ? r.latestRun.conclusion || r.latestRun.status : "no runs")), }), ) .catch(() => setGiteaSummary(null)); }, [integrations]); useEffect(() => { const dockhand = integrations?.find((i) => i.type === "dockhand" && i.enabled); if (!dockhand) { setDockhandSummary(null); return; } api.integrations.dockhand .containers(dockhand.id) .then((res) => setDockhandSummary({ running: res.summary.running, total: res.summary.total, hostCount: new Set(res.containers.map((c) => c.environmentName)).size, updatesAvailable: res.containers.filter((c) => c.updateAvailable).length, stateBreakdown: breakdownFrom(res.containers, (c) => c.state), }), ) .catch(() => setDockhandSummary(null)); }, [integrations]); useEffect(() => { const semaphore = integrations?.find((i) => i.type === "semaphore" && i.enabled); if (!semaphore) { setSemaphoreSummary(null); return; } api.integrations.semaphore .templates(semaphore.id) .then((res) => setSemaphoreSummary({ ...res.summary, statusBreakdown: breakdownFrom(res.templates, (t) => t.lastTask?.status ?? "never run"), }), ) .catch(() => setSemaphoreSummary(null)); }, [integrations]); useEffect(() => { const proxmox = integrations?.find((i) => i.type === "proxmox" && i.enabled); if (!proxmox) { setProxmoxSummary(null); return; } api.integrations.proxmox .guests(proxmox.id) .then((res) => setProxmoxSummary({ running: res.summary.running, total: res.summary.total, vmCount: res.guests.filter((g) => g.type === "qemu").length, lxcCount: res.guests.filter((g) => g.type === "lxc").length, nodeBreakdown: breakdownFrom(res.guests, (g) => g.node), }), ) .catch(() => setProxmoxSummary(null)); }, [integrations]); useEffect(() => { const synology = integrations?.find((i) => i.type === "synology" && i.enabled); if (!synology) { setSynologySummary(null); return; } api.integrations.synology .system(synology.id) .then((sys) => setSynologySummary((prev) => ({ volumeCount: prev?.volumeCount ?? 0, volumesNotNormal: prev?.volumesNotNormal ?? 0, disksNotNormal: prev?.disksNotNormal ?? 0, diskStatusBreakdown: prev?.diskStatusBreakdown ?? [], cpuLoadPercent: sys.cpu.loadPercent, memUsedBytes: sys.memory.usedBytes, memTotalBytes: sys.memory.totalBytes, })), ) .catch(() => {}); api.integrations.synology .storage(synology.id) .then((res) => setSynologySummary((prev) => ({ cpuLoadPercent: prev?.cpuLoadPercent ?? null, memUsedBytes: prev?.memUsedBytes ?? null, memTotalBytes: prev?.memTotalBytes ?? null, volumeCount: res.summary.volumeCount, volumesNotNormal: res.summary.volumesNotNormal, disksNotNormal: res.summary.disksNotNormal, diskStatusBreakdown: breakdownFrom(res.disks, (d) => d.status), })), ) .catch(() => setSynologySummary(null)); }, [integrations]); useEffect(() => { const uptimeKuma = integrations?.find((i) => i.type === "uptimekuma" && i.enabled); if (!uptimeKuma) { setUptimeKumaSummary(null); return; } api.integrations.uptimekuma .monitors(uptimeKuma.id) .then((res) => { const labelFor = (s: string) => s.charAt(0).toUpperCase() + s.slice(1); setUptimeKumaSummary({ up: res.summary.up, down: res.summary.down, total: res.summary.total, matched: res.monitors.filter((m) => m.matchedServer).length, statusBreakdown: breakdownFrom(res.monitors, (m) => labelFor(m.status)), }); }) .catch(() => setUptimeKumaSummary(null)); }, [integrations]); useEffect(() => { const pbs = integrations?.find((i) => i.type === "pbs" && i.enabled); if (!pbs) { setPbsSummary(null); return; } api.integrations.pbs .datastores(pbs.id) .then((res: PbsDatastoresResponse) => setPbsSummary({ datastoreCount: res.summary.datastoreCount, failedSnapshotCount: res.summary.failedSnapshotCount, unverifiedSnapshotCount: res.summary.unverifiedSnapshotCount, }), ) .catch(() => setPbsSummary(null)); }, [integrations]); useEffect(() => { const osticket = integrations?.find((i) => i.type === "osticket" && i.enabled); if (!osticket) { setOsTicketSummary(null); return; } api.integrations.osticket .tickets(osticket.id) .then((res: OsTicketTicketsResponse) => setOsTicketSummary({ total: res.summary.total, overdue: res.summary.overdue, awaitingReply: res.summary.awaitingReply, }), ) .catch(() => setOsTicketSummary(null)); }, [integrations]); const domains = domainList?.domains ?? []; const expiredDomains = domains.filter((d) => d.status === "expired"); const expiringDomains = domains.filter((d) => d.status === "expiring"); const okDomains = domains.filter((d) => d.status === "ok").length; const undatedDomains = domains.filter((d) => d.status === "unknown").length; // A registry that simply doesn't publish expiry dates isn't a failure; anything else that stopped a refresh is. const failingDomainChecks = domains.filter((d) => d.lastCheckError && !/doesn't publish/i.test(d.lastCheckError)).length; const nextDomain = domains .filter((d) => d.expiresAt && d.daysLeft !== null && d.daysLeft >= 0) .sort((a, b) => a.daysLeft! - b.daysLeft!)[0]; const totalSecrets = secrets?.length ?? 0; const expiredSecrets = secrets?.filter((s) => s.status === "expired").length ?? 0; const expiringSecrets = secrets?.filter((s) => s.status === "expiring").length ?? 0; const secretsByType = Object.entries( (secrets ?? []).reduce>((acc, s) => { acc[s.type] = (acc[s.type] ?? 0) + 1; return acc; }, {}), ).map(([type, count]) => ({ label: SECRET_TYPE_LABELS[type as SecretRecord["type"]] ?? type, count })); const setupSteps: SetupStep[] = [ { id: "integration", title: "Connect an integration", description: "Proxmox, Synology, Tailscale, Docker, Uptime Kuma… each gets its own page and shows up in alerts.", to: "/integrations", action: "Add one", done: (integrations?.length ?? 0) > 0 }, { id: "server", title: "Add a server and install its agent", description: "The agent reports scheduled tasks, disks, memory and open ports, and lets the app tell when a server goes quiet.", to: "/servers", action: "Add a server", done: (serverSummary?.total ?? 0) > 0 }, { id: "dns", title: "Connect a DNS provider", description: "See your zones and records, and have names matched to servers.", to: "/dns", action: "Connect", done: (dnsStats?.totalProviders ?? 0) > 0 }, { id: "secret", title: "Track something that expires", description: "An API token, a certificate or a password — you're warned before it runs out.", to: "/secrets", action: "Add one", done: (secrets?.length ?? 0) > 0 }, { id: "notify", title: "Choose how you'll be told about problems", description: "Gotify, ntfy, email or a webhook, with the checks you want.", to: "/settings/notifications", action: "Set up", done: notifyConfigured === true }, { id: "people", title: "Let someone else in (optional)", description: "Others sign in with Authentik and appear under Users; you decide their role.", to: "/users", action: "Open Users", done: (userCount ?? 0) > 1 }, ]; // What has nothing set up yet. These get one list at the bottom instead of a grey "Not configured" card each. const notSetUp: { label: string; to: string; what: string }[] = []; if (dnsStats?.totalProviders === 0) notSetUp.push({ label: "DNS", to: "/dns", what: "connect a DNS provider to see zones and records" }); if (secrets !== null && totalSecrets === 0) notSetUp.push({ label: "Secrets", to: "/secrets", what: "track when a token, certificate or password expires" }); if (serverSummary?.total === 0) notSetUp.push({ label: "Servers", to: "/servers", what: "add a server and install its agent" }); if (domainList !== null && domains.length === 0) notSetUp.push({ label: "Domains", to: "/domains", what: "appear after a DNS zone is added and the daily check has run" }); if (integrations !== null) { for (const { type, label } of WIDGETS) { if (!integrations.some((i) => i.type === type)) notSetUp.push({ label, to: "/integrations", what: "connect it under Integrations" }); } } return ( <>

Dashboard

Wall display

Welcome back, {user.name ?? user.email ?? user.sub}.

{isAdmin && integrations !== null && dnsStats !== null && serverSummary !== null && secrets !== null && notifyConfigured !== null && ( )}
Not configured ) : ( {dnsStats.enabledProviders} enabled ) } > {!dnsStats ? ( ) : dnsStats.totalProviders === 0 ? (
Configure a DNS provider from the DNS page.
) : ( <>
{dnsStats.perProvider.some((p) => p.error) && (
{dnsStats.perProvider .filter((p) => p.error) .map((p) => `${p.name}: ${p.error}`) .join("; ")}
)} {dnsStats.recordsByType.length > 0 && ( ({ label: r.type, count: r.count }))} colors={DNS_TYPE_COLORS} compact /> )} )}
Not configured ) : expiredSecrets > 0 ? ( {expiredSecrets} expired ) : expiringSecrets > 0 ? ( {expiringSecrets} expiring ) : ( All OK ) } > {!secrets ? ( ) : totalSecrets === 0 ? (
Configure a secret from the Secrets page.
) : ( <>
0 ? "#f59e0b" : undefined} />
0 ? "#ef4444" : undefined} />
)}
Not configured ) : serverSummary.offline.length > 0 ? ( {serverSummary.offline.length} offline ) : serverSummary.fullDisks.length > 0 ? ( {serverSummary.fullDisks.length} disk{serverSummary.fullDisks.length === 1 ? "" : "s"} nearly full ) : serverSummary.online > 0 ? ( All online ) : ( No agent data ) } > {!serverSummary ? ( !serverError && ) : serverSummary.total === 0 ? (
Add a server from the Servers page.
) : ( <>
{serverSummary.total}} />
0 ? "#ef4444" : undefined} />
d.count > 0)} colors={SERVER_STATE_COLORS} compact /> {serverSummary.offline.length > 0 && (
Offline:{" "} {serverSummary.offline.slice(0, 3).map((s, i) => ( {i > 0 && ", "} {s.name}{" "} ( {s.inMaintenance ? ", in maintenance" : ""}) ))} {serverSummary.offline.length > 3 && +{serverSummary.offline.length - 3} more}
)} {serverSummary.fullDisks.length > 0 && (
Disk ≥ {serverSummary.thresholds.diskPercent}%:{" "} {serverSummary.fullDisks.slice(0, 3).map((d, i) => ( {i > 0 && ", "} {d.name}{" "} {d.mount} {d.percent}% ))} {serverSummary.fullDisks.length > 3 && +{serverSummary.fullDisks.length - 3} more}
)} {serverSummary.byOs.windows > 0 && (
{serverSummary.byOs.linux} Linux · {serverSummary.byOs.windows} Windows
)} )}
Not configured ) : expiredDomains.length > 0 ? ( {expiredDomains.length} expired ) : expiringDomains.length > 0 ? ( {expiringDomains.length} expiring ) : okDomains > 0 ? ( All OK ) : ( No expiry dates ) } > {!domainList ? ( !domainError && ) : domains.length === 0 ? (
Domains for your DNS zones appear on the Domains page after the next daily check, or add one there.
) : ( <>
{domains.length}} />
0 ? "#f59e0b" : undefined} />
0 ? "#ef4444" : undefined} />
d.count > 0)} colors={DOMAIN_STATE_COLORS} compact /> {expiredDomains.length > 0 && (
Expired:{" "} {expiredDomains.slice(0, 3).map((d, i) => ( {i > 0 && ", "} {d.name} ({Math.abs(d.daysLeft ?? 0)} d ago) ))} {expiredDomains.length > 3 && +{expiredDomains.length - 3} more}
)} {expiringDomains.length > 0 && (
Expiring:{" "} {expiringDomains .slice() .sort((a, b) => a.daysLeft! - b.daysLeft!) .slice(0, 3) .map((d, i) => ( {i > 0 && ", "} {d.name} ({d.daysLeft} d) ))} {expiringDomains.length > 3 && +{expiringDomains.length - 3} more}
)} {nextDomain && nextDomain.status === "ok" && (
Next to expire: {nextDomain.name} in {nextDomain.daysLeft} days ({nextDomain.expiresAt})
)} {failingDomainChecks > 0 && (
{failingDomainChecks} domain{failingDomainChecks === 1 ? "" : "s"} couldn't be refreshed — see the Domains page.
)} )}
{WIDGETS.map(({ type, label }) => { const integration = integrations?.find((i) => i.type === type && i.enabled); const isLiveTailscale = type === "tailscale" && integration && tailscaleSummary; const isLiveGitea = type === "gitea" && integration && giteaSummary; const isLiveDockhand = type === "dockhand" && integration && dockhandSummary; const isLiveSemaphore = type === "semaphore" && integration && semaphoreSummary; const isLiveProxmox = type === "proxmox" && integration && proxmoxSummary; const isLiveSynology = type === "synology" && integration && synologySummary; const isLiveUptimeKuma = type === "uptimekuma" && integration && uptimeKumaSummary; const isLivePbs = type === "pbs" && integration && pbsSummary; const isLiveOsTicket = type === "osticket" && integration && osTicketSummary; const isLive = isLiveTailscale || isLiveGitea || isLiveDockhand || isLiveSemaphore || isLiveProxmox || isLiveSynology || isLiveUptimeKuma || isLivePbs || isLiveOsTicket; return ( i.type === type)} badge={ isLive ? ( Connected ) : integration ? ( Connecting… ) : ( Not connected ) } > {isLiveTailscale ? ( <>
0 ? "#f59e0b" : undefined} />
0 ? "#f59e0b" : undefined} />
{tailscaleExtra && tailscaleExtra.osBreakdown.length > 0 && ( d.label))} compact /> )} ) : isLiveGitea ? ( <>
0 ? "#ef4444" : undefined} />
{giteaSummary!.statusBreakdown.length > 0 && ( )} ) : isLiveDockhand ? ( <>
0 ? "#f59e0b" : undefined} />
{dockhandSummary!.stateBreakdown.length > 0 && ( )} ) : isLiveSemaphore ? ( <>
0 ? "#ef4444" : undefined} />
{semaphoreSummary!.statusBreakdown.length > 0 && ( )} ) : isLiveProxmox ? ( <>
{proxmoxSummary!.nodeBreakdown.length > 1 && ( d.label))} compact /> )} ) : isLiveSynology ? ( <>
0 ? "#ef4444" : undefined} />
{synologySummary!.memTotalBytes !== null && (
RAM: {formatBytes(synologySummary!.memUsedBytes)} / {formatBytes(synologySummary!.memTotalBytes)}
)} {synologySummary!.diskStatusBreakdown.length > 0 && ( d.label))} compact /> )} ) : isLiveUptimeKuma ? ( <>
0 ? "#ef4444" : undefined} />
{uptimeKumaSummary!.statusBreakdown.length > 0 && ( )} ) : isLivePbs ? (
0 ? "#ef4444" : undefined} />
0 ? "#f59e0b" : undefined} />
) : isLiveOsTicket ? (
0 ? "#ef4444" : undefined} />
0 ? "#f59e0b" : undefined} />
) : (
{integration ? ( ) : ( <> Configure this integration from the Integrations page. )}
)}
); })}
{notSetUp.length > 0 && (

Not set up yet

{notSetUp.map((n) => ( {n.label} {n.what} ))}
)} ); }