diff --git a/src/components/error-page/index.jsx b/src/components/error-page/index.jsx new file mode 100644 index 0000000..458db24 --- /dev/null +++ b/src/components/error-page/index.jsx @@ -0,0 +1,31 @@ +import PropTypes from 'prop-types'; + +const ErrorPage = (props) => { + return ( +
+
+
+
+

+ {props.status} +

+

{props.title}

+

+ {props.subTitle} +

+
+
+
+
+
+
+ ); +}; + +ErrorPage.propTypes = { + status: PropTypes.string.isRequired, + title: PropTypes.string.isRequired, + subTitle: PropTypes.string.isRequired, +}; + +export default ErrorPage;