colouring-montreal/app/src/frontend/building/building-not-found.tsx

27 lines
689 B
TypeScript
Raw Normal View History

2019-08-14 11:03:47 -04:00
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Sidebar from './sidebar';
import InfoBox from '../components/info-box';
interface BuildingNotFoundProps {
mode: string
}
const BuildingNotFound: React.FunctionComponent<BuildingNotFoundProps> = (props) => (
<Sidebar>
<InfoBox msg="We can't find that one anywhere - try the map again?" />
<div className="buttons-container ml-3 mr-3">
<Link to={`/${props.mode}/categories.html`} className="btn btn-secondary">Back to categories</Link>
</div>
</Sidebar>
);
BuildingNotFound.propTypes = {
mode: PropTypes.string
}
export default BuildingNotFound;