2021-08-19 12:27:01 +00:00
|
|
|
import { XCircleIcon } from "@heroicons/react/solid";
|
2021-06-09 12:26:00 +00:00
|
|
|
|
|
|
|
export default function ErrorAlert(props) {
|
|
|
|
return (
|
|
|
|
<div className="rounded-md bg-red-50 p-4">
|
|
|
|
<div className="flex">
|
|
|
|
<div className="flex-shrink-0">
|
|
|
|
<XCircleIcon className="h-5 w-5 text-red-400" aria-hidden="true" />
|
|
|
|
</div>
|
|
|
|
<div className="ml-3">
|
|
|
|
<h3 className="text-sm font-medium text-red-800">Something went wrong</h3>
|
|
|
|
<div className="text-sm text-red-700">
|
2021-08-19 12:27:01 +00:00
|
|
|
<p>{props.message}</p>
|
2021-06-09 12:26:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-08-19 12:27:01 +00:00
|
|
|
);
|
|
|
|
}
|