// @flow import * as React from 'react'; import Notice from '../../../shared/components/Notice'; type Props = { notice?: string, }; export default function AuthNotices({ notice }: Props) { return ( {notice === 'guest-success' && ( A magic sign-in link has been sent to your email address, no password needed. )} {notice === 'google-hd' && ( Sorry, Google sign in cannot be used with a personal email. Please try signing in with your company Google account. )} {notice === 'hd-not-allowed' && ( Sorry, your Google apps domain is not allowed. Please try again with an allowed company domain. )} {notice === 'email-auth-required' && ( Your account uses email sign-in, please sign-in with email to continue. )} {notice === 'email-auth-ratelimit' && ( An email sign-in link was recently sent, please check your inbox and try again in a few minutes. )} {notice === 'auth-error' && ( Authentication failed - we were unable to sign you in at this time. Please try again. )} {notice === 'expired-token' && ( Sorry, it looks like that sign-in link is no longer valid, please try requesting another. )} {notice === 'suspended' && ( Your Outline account has been suspended. To re-activate your account, please contact a team admin. )} ); }