mirror of
https://github.com/Priyatham-sai-chand/Locaft-backend.git
synced 2026-10-05 08:51:33 -07:00
10 lines
232 B
JavaScript
10 lines
232 B
JavaScript
|
|
import React from "react";
|
||
|
|
|
||
|
|
export default function ErrorNotice(props) {
|
||
|
|
return (
|
||
|
|
<div className="error-notice">
|
||
|
|
<span>{props.message}</span>
|
||
|
|
<button onClick={props.clearError}>X</button>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|