Files
vHost/frontend/src/components/StartupError.tsx
T

14 lines
651 B
TypeScript

import { RefreshCw, ServerOff } from 'lucide-react';
import { Brand } from './Brand';
export function StartupError({ message, onRetry }: { message: string; onRetry?: () => void }) {
return <main className="startup-error-page"><section className="startup-error-panel">
<Brand />
<div className="startup-error-icon"><ServerOff /></div>
<h1>暂时无法连接服务</h1>
<p>{message}</p>
{onRetry?<button className="primary" onClick={onRetry}><RefreshCw size={16} />重新连接</button>:null}
{onRetry?<small>如果服务刚完成安装,通常等待几秒后重试即可。</small>:null}
</section></main>;
}