2026-06-08 10:55:46 +08:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import { Text } from '@lobehub/ui';
|
|
|
|
|
import { type CSSProperties, memo } from 'react';
|
|
|
|
|
import { Trans, useTranslation } from 'react-i18next';
|
|
|
|
|
|
|
|
|
|
import { PRIVACY_URL, TERMS_URL } from '@/const/url';
|
|
|
|
|
|
|
|
|
|
const linkStyle: CSSProperties = {
|
|
|
|
|
color: 'inherit',
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
textDecoration: 'underline',
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const AuthAgreement = memo(() => {
|
|
|
|
|
const { t } = useTranslation('auth');
|
|
|
|
|
return (
|
|
|
|
|
<Text fontSize={13} style={{ display: 'block', marginBlockStart: 8 }} type={'secondary'}>
|
|
|
|
|
<Trans
|
|
|
|
|
i18nKey={'footer.agreement'}
|
|
|
|
|
ns={'auth'}
|
|
|
|
|
components={{
|
|
|
|
|
privacy: (
|
|
|
|
|
<a href={PRIVACY_URL} style={linkStyle}>
|
2026-06-13 16:15:04 +08:00
|
|
|
{t('footer.privacy')}
|
2026-06-08 10:55:46 +08:00
|
|
|
</a>
|
|
|
|
|
),
|
|
|
|
|
terms: (
|
|
|
|
|
<a href={TERMS_URL} style={linkStyle}>
|
2026-06-13 16:15:04 +08:00
|
|
|
{t('footer.terms')}
|
2026-06-08 10:55:46 +08:00
|
|
|
</a>
|
|
|
|
|
),
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Text>
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default AuthAgreement;
|