// @flow import * as React from 'react'; import Notice from '../../../shared/components/Notice'; type Props = { notice?: string, }; export default function AuthErrors({ notice }: Props) { return ( {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 === 'auth-error' && ( Authentication failed - we were unable to sign you in at this time. Please try again. )} ); }