patternplate-client
Version:
Universal javascript client application for patternplate
27 lines (19 loc) • 636 B
JavaScript
import {connect} from 'react-redux';
import Home from '../components/content/home';
export default connect(state => {
return {
base: state.base,
readme: selectReadme(state)
};
})(Home);
function selectReadme(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/sinnerschrader/patternplate)
`;
}