| 1 |
export const ErrorMessage = ({ children }) => ( |
| 2 |
<div className="mb-4 ml-10 mr-2 min-w-0 flex-1 flex-col gap-1 rtl:ml-2 rtl:mr-10 rtl:flex"> |
| 3 |
<div className="flex gap-2 rounded-lg border border-wp-alert-red bg-wp-alert-red/10 p-3 text-red-800"> |
| 4 |
<div> |
| 5 |
<svg |
| 6 |
xmlns="http://www.w3.org/2000/svg" |
| 7 |
fill="none" |
| 8 |
viewBox="0 0 24 24" |
| 9 |
strokeWidth={1.5} |
| 10 |
stroke="currentColor" |
| 11 |
className="size-6"> |
| 12 |
<path |
| 13 |
strokeLinecap="round" |
| 14 |
strokeLinejoin="round" |
| 15 |
d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z" |
| 16 |
/> |
| 17 |
</svg> |
| 18 |
</div> |
| 19 |
<div className="text-sm">{children}</div> |
| 20 |
</div> |
| 21 |
</div> |
| 22 |
); |
| 23 |
|