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

21 lines
573 B
TypeScript
Raw Normal View History

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