Files
BortStack/react/src/views/RoutePlaceholder.jsx
T

14 lines
579 B
React

import PropTypes from "prop-types";
import { Container } from "react-bootstrap";
import { Link } from "react-router-dom";
export default function RoutePlaceholder({ title, description }) {
return <Container className="routePlaceholder">
<p className="eyebrow">BortStack · Website in development</p>
<h1>{title}</h1>
<p>{description}</p>
<Link to="/">Back to homepage <span aria-hidden="true">→</span></Link>
</Container>;
}
RoutePlaceholder.propTypes = { title: PropTypes.string.isRequired, description: PropTypes.string.isRequired };