@randy.tarampi/jsx
Version:
Some common JSX components for www.randytarampi.ca
23 lines • 1.16 kB
JavaScript
import { DoubtBear } from "@randy.tarampi/js";
import PropTypes from "prop-types";
import React from "react";
import { ConnectedBear } from "../../../containers/emoji/bear";
import { InternalLink } from "../../link/internal";
export var ErrorENOACCESSContentComponent = props => /*#__PURE__*/React.createElement(ConnectedBear, {
emoji: DoubtBear.fromJS(),
id: "error-doubt-bear"
}, /*#__PURE__*/React.createElement("h2", {
className: "error__message--header"
}, /*#__PURE__*/React.createElement("span", {
className: "text"
}, "What are you looking for?")), /*#__PURE__*/React.createElement("p", {
className: "error__message"
}, "I don't know who told you to come to ", /*#__PURE__*/React.createElement("code", null, "".concat(window.location.origin).concat(props.location.pathname)), ", but there's nothing here. Go back to the ", /*#__PURE__*/React.createElement(InternalLink, {
target: "_self",
href: "".concat(props.redirectionLocation)
}, "home page"), "."));
ErrorENOACCESSContentComponent.propTypes = {
location: PropTypes.object.isRequired,
redirectionLocation: PropTypes.string.isRequired
};
export default ErrorENOACCESSContentComponent;