Files
monkey-ai-web/src/components/auth/AuthDivider.jsx
T

36 lines
1.3 KiB
React

/*
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 <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
/**
* 认证页统一的「— 文案 —」分隔线(如「或」「还没有企业?」)。
* 两侧细线 + 居中弱化文字,不依赖底色遮挡,玻璃卡片与深色模式下都干净。
* 样式见 src/styles/prototype.css 的 .auth-divider。
*/
const AuthDivider = ({ children, className = '' }) => (
<div className={`auth-divider ${className}`} role='separator'>
<span className='auth-divider-line' aria-hidden='true' />
<span className='auth-divider-text'>{children}</span>
<span className='auth-divider-line' aria-hidden='true' />
</div>
);
export default AuthDivider;