rsnext/examples/with-apollo-and-redux/components/ErrorMessage.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
373 B
JavaScript
Raw Normal View History

import PropTypes from "prop-types";
const ErrorMessage = ({ message }) => (
<aside>
{message}
<style jsx>{`
aside {
padding: 1.5em;
font-size: 14px;
color: white;
background-color: red;
}
`}</style>
</aside>
);
ErrorMessage.propTypes = {
message: PropTypes.string.isRequired,
};
export default ErrorMessage;