import { FC } from 'hono/jsx'; interface Props { error?: string; isSetup?: boolean; } export const LoginPage: FC = (props) => { const title = props.isSetup ? '设置管理员密码' : '管理员登录'; return ( {title} - LLM Gateway

{title}

{props.error && (
错误: {props.error}
)} {props.isSetup && (
提示: 首次使用后台管理,请设置管理员密码。删除 config.json 中的 adminPassword 字段可清除密码。
)}
); };