import { useAppStore } from "../../stores/useAppStore"; import { Card } from "../atoms"; export default function ServerSummary() { const { serverInfo } = useAppStore(); if (!serverInfo) return null; const uptimeStr = (uptimeMs: number) => { const seconds = Math.floor(uptimeMs / 1000); const h = Math.floor(seconds / 3600); const m = Math.floor((seconds % 3600) / 60); const s = seconds % 60; if (h > 0) return `${h}h ${m}m ${s}s`; if (m > 0) return `${m}m ${s}s`; return `${s}s`; }; // const copyToClipboard = (text: string) => { // navigator.clipboard.writeText(text); // }; return (
Settings

Server Information

Technical details for current session

{serverInfo.version}
{uptimeStr(serverInfo.uptime)}
{/* {serverInfo.configPath && (
copyToClipboard(serverInfo.configPath!)} title="Click to copy path" > {serverInfo.configPath.split("/").pop()} 📋
)} */}
); }