2022-09-29 11:39:33 +09:00
import React from 'react' ;
import { FormattedMessage } from 'react-intl' ;
2022-09-29 13:21:51 +09:00
import { registrationsOpen } from 'mastodon/initial_state' ;
2022-09-29 11:39:33 +09:00
const SignInBanner = ( ) => (
< div className = 'sign-in-banner' >
< p > < FormattedMessage id = 'sign_in_banner.text' defaultMessage = 'Sign in to follow profiles or hashtags, favourite, share and reply to posts, or interact from your account on a different server.' / > < / p >
< a href = '/auth/sign_in' className = 'button button--block' > < FormattedMessage id = 'sign_in_banner.sign_in' defaultMessage = 'Sign in' / > < / a >
2022-09-29 13:21:51 +09:00
< a href = { registrationsOpen ? '/auth/sign_up' : 'https://joinmastodon.org/servers' } className = 'button button--block button-tertiary' > < FormattedMessage id = 'sign_in_banner.create_account' defaultMessage = 'Create account' / > < / a >
2022-09-29 11:39:33 +09:00
< / d i v >
) ;
export default SignInBanner ;