import type { ReactNode } from "react";
import type { VaultStatus } from "../../lib/format";
import { StatusDot } from "../ui/StatusDot";
import { formatBytes } from "../../lib/format";
import type { Snapshot } from "../../api";
export function CockpitFrame({ children }: { children: ReactNode }) {
return (
Tessera · orbital vault
SYS // VAULT-01
{children}
);
}
function motionBorder() {
return (
<>
>
);
}
export function TelemetryStrip({
status,
online,
snapCount,
totalBytes,
}: {
status: VaultStatus;
online: boolean;
snapCount: number;
totalBytes: number;
}) {
return (
{online ? "LINK OK" : "NO LINK"}
TILES {snapCount}
{formatBytes(totalBytes)} mass
);
}
export function SnapshotsMiniList({
snapshots,
selected,
onSelect,
}: {
snapshots: Snapshot[];
selected: string | null;
onSelect: (id: string) => void;
}) {
if (!snapshots.length) return null;
return (
{snapshots.slice(0, 4).map((s, i) => (
onSelect(s.id)}
className={`w-full text-left text-[10px] font-mono px-2 py-1 rounded border transition-colors ${
selected === s.id
? "border-orbit-green/60 bg-orbit-green/10 text-orbit-green"
: "border-space-700/50 bg-space-950/60 text-star-400 hover:border-star-400/40"
}`}
>
{String(i + 1).padStart(2, "0")} · {s.orbit_name.slice(0, 12)}
))}
);
}