import type { ScopedThreadRef } from "@t3tools/contracts"; import { PreviewFaviconIcon } from "./PreviewFaviconIcon"; import type { PreviewableServer } from "./useDiscoveredLocalServers"; interface Props { threadRef: ScopedThreadRef; server: PreviewableServer; onOpen: () => void; } export function PreviewLocalServerCard({ threadRef, server, onOpen }: Props) { const subtitle = describeServer(server); return ( ); } function describeServer(server: PreviewableServer): string { if (server.processName) return server.processName; return "Listening"; }