import type { Project } from '../../api' import { LinkIcon, RefreshIcon } from '../common/Icon' /** * 本地服务面板:连接状态、项目数、访问地址,以及两个操作入口。 * 只读展示 + 触发刷新,不负责导航。 */ type ServicePanelProps = { projects: Project[] live: boolean refreshing: boolean onRefresh: () => void } export function ServicePanel({ projects, live, refreshing, onRefresh }: ServicePanelProps) { const host = typeof window === 'undefined' ? '-' : window.location.host return (

本地服务

项目数
{projects.length}
访问地址
{host}
查看接口
) }