@cimpress/react-components
Version:
React components to support the MCP styleguide
35 lines • 1.49 kB
JavaScript
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
import React from 'react';
import { css, cx } from '@emotion/css';
import { SVG404 } from './SVG404';
import cvar from './theme/cvar';
export const FourOhFour = (_a) => {
var { message = 'Oops! Something has gone wrong and the page you were looking for could not be displayed. Try the homepage.', className } = _a, rest = __rest(_a, ["message", "className"]);
return (React.createElement("div", Object.assign({ className: cx('crc-fourohfour', css `
text-align: center;
`, className) }, rest),
React.createElement("div", { className: css `
max-width: 550px;
margin: 0 auto;
` },
React.createElement(SVG404, null)),
React.createElement("div", { className: css `
max-width: 500px;
margin: 0 auto;
` },
React.createElement("h1", { className: css `
color: ${cvar('color-404-heading')};
` }, "404 Page Not Found"),
message)));
};
//# sourceMappingURL=FourOhFour.js.map