UNPKG

@patternplate/client

Version:

Universal javascript client application for patternplate

42 lines (30 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _reactRedux = require("react-redux"); var _documentation = _interopRequireDefault(require("../components/documentation")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = (0, _reactRedux.connect)(state => { return { base: state.base, id: state.id, docs: { contents: selectNotFound(state) } }; })(_documentation.default); exports.default = _default; function selectNotFound(state) { const url = state.routing.locationBeforeTransitions.pathname; return ` # Nothing found > Pretty sure these aren't the hypertext documents you are looking for. We looked everywhere and could not find a single thing at \`${url}\`. You might want to navigate back to [Home](/) or use the search. --- Help us to make this message more helpful on [GitHub](https://github.com/patternplate/patternplate) `; } //# sourceMappingURL=not-found.js.map