优化LoginHeader组件

This commit is contained in:
2025-12-16 22:49:31 +08:00
parent 70517058ae
commit 12c84f3dc8

View File

@@ -1,10 +1,15 @@
export default function LoginHeader() {
interface LoginHeaderProps {
h1?: string;
h2?: string;
}
export default function LoginHeader({ h1, h2 }: LoginHeaderProps) {
return (
<>
<div className="flex flex-col items-center text-center">
<h1 className="text-2xl font-bold"></h1>
<h1 className="text-2xl font-bold">{h1 || '欢迎回来'}</h1>
<p className="text-muted-foreground text-balance">
{h2 || '登陆到您的账户'}
</p>
</div>
</>