import { Button, Card, Icon, Space, Tag, Text, Title } from '@stash/ui' import type { Project } from '../../api' /** * 本地服务面板:连接状态、项目数、访问地址,以及两个操作入口。 * 只读展示 + 触发刷新,不负责导航。 */ 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 ( 本地服务 {live ? '已连接' : '未连接'}
项目数 {projects.length} 访问地址 {host}
查看接口
) }