From 1fc3ca059a684704b95d2192a0ab100bee3c5323 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 19 Mar 2022 00:52:38 +0600 Subject: [PATCH] Create ErrorPage component --- src/components/error-page/index.jsx | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/components/error-page/index.jsx 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;