joyent-portal/prototypes/create-instance-icons/src/components/navigation/not-found.js

32 lines
752 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from 'react';
import PropTypes from 'prop-types';
import { H1, P, Button, ViewContainer } from 'joyent-ui-toolkit';
import { Margin } from 'styled-components-spacing';
const NotFound = ({
title = 'I have no memory of this place',
message = `HTTP 404: We cant find what you are looking for.
Next time, always follow your nose.`,
link = 'Back home',
to = '/'
}) => (
<ViewContainer>
<Margin top={10}>
<H1>{title}</H1>
<P>{message}</P>
<Margin top={5}>
<Button to={to}>{link}</Button>
</Margin>
</Margin>
</ViewContainer>
);
NotFound.propTypes = {
title: PropTypes.string,
message: PropTypes.string,
link: PropTypes.string,
to: PropTypes.string
};
export default NotFound;