import { LoadingState } from "../components/loading-state"; import { useRuntimeInfoQuery } from "../runtime/queries/use-runtime-info-query"; import type { SettingsConnectionProps } from "../runtime/owner-rpc"; import { Button } from "octane-kumo/components/button"; export function InstallationSettings({ connection, connected, connecting, }: SettingsConnectionProps) { const query = useRuntimeInfoQuery(connection); const info = query.data; const error = query.isError ? "Could not load installation details." : ""; return ( <>

Tools

These tools are included in this installation. Configured services have not been tested here; account access and service availability can affect a run.

{error && ( <>

{error}

)} {!info && !error && (connected || connecting) && ( )}
    {info?.tools.map((tool) => (
  • {tool.name}

    {tool.status === "available" ? "Available" : tool.status === "configured" ? "Configured" : "Not configured"}

    {tool.description}

  • ))}

Installation details

Your personal Flarebot installation.

{!info && !error && (connected || connecting) && ( )} {info && (
Application version
{info.applicationVersion}
Installation ID
{info.installationId}
Runtime address
{info.runtimeOrigin}
Control plane address
{info.controlPlaneOrigin}
)}

Update availability and deployment history are not available yet.

); }