// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import PropTypes from 'prop-types'; import { Redirect, Route, Switch } from 'react-router-dom'; import { AmplifyAuthContainer, AmplifyAuthenticator, AmplifySignIn, AmplifySignUp, } from '@aws-amplify/ui-react'; import { LOGIN_PATH, LOGOUT_PATH, REDIRECT_URL_PARAM } from './constants'; // this is set at build time depending on the AllowedSignUpEmailDomain CloudFormation parameter const { REACT_APP_SHOULD_HIDE_SIGN_UP = 'true' } = process.env; const UnauthRoutes = ({ location }) => ( ); UnauthRoutes.propTypes = { location: PropTypes.shape({ pathname: PropTypes.string, search: PropTypes.string, }).isRequired, }; export default UnauthRoutes;