Created the ErrorArea.jsx
This commit is contained in:
parent
3a1451aedc
commit
9a346f6833
10
client/src/common/components/ErrorArea/ErrorArea.jsx
Normal file
10
client/src/common/components/ErrorArea/ErrorArea.jsx
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import "./styles.sass";
|
||||||
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||||
|
import {faExclamationCircle} from "@fortawesome/free-solid-svg-icons";
|
||||||
|
|
||||||
|
export const ErrorArea = ({error}) => (
|
||||||
|
<div className="error-area">
|
||||||
|
<FontAwesomeIcon icon={faExclamationCircle} className="error-icon" />
|
||||||
|
<h2>{error}</h2>
|
||||||
|
</div>
|
||||||
|
)
|
Reference in New Issue
Block a user