/* Copyright (C) 2025 QuantumNous This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . For commercial licensing, please contact support@quantumnous.com */ import React from 'react'; import { Sparkles } from 'lucide-react'; /** * 登录/注册/企业登录页卡片顶部的「品牌 Logo + 标题 + 副标题」头部。 * * 这一段(Logo 光环 + 白底圆角 + 右上角 Sparkles + h4 标题 + p 副标题)原本在 * LoginForm / RegisterForm / OrgLogin 中重复了 5 份,抽到这里统一维护,避免日后样式漂移。 * * - logoNode:自定义 Logo 节点(如企业 Avatar);不传则用 logo(src) 渲染平台 。 * - wrapperClassName / logoWrapperClassName:保留各页面原有的间距微调(mb-*)。 * - Sparkles 统一用 motion-safe:animate-pulse,遵循 prefers-reduced-motion。 */ const AuthCardHeader = ({ title, subtitle, logo, logoNode, wrapperClassName = 'mb-5', logoWrapperClassName = 'mb-3', }) => (
{/* Logo 光环 */}
{logoNode || ( Logo )}

{title}

{subtitle}

); export default AuthCardHeader;