import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { useAppConfig } from '@state'; const NotFound = ({ message = 'Sorry, this page does not exist.', showGoBackButton = true }) => { const [appConfig] = useAppConfig(); const { showStudyList } = appConfig; return (

{message}

{showGoBackButton && showStudyList && (
Go back to the Study List
)}
); }; NotFound.propTypes = { message: PropTypes.string, showGoBackButton: PropTypes.bool, }; export default NotFound;