| 1 |
import { __ } from '@wordpress/i18n'; |
| 2 |
|
| 3 |
export const ErrorMessage = ({ children }) => ( |
| 4 |
<div className="mb-4 ms-12 me-2 min-w-0 flex-1 flex-col gap-1 rtl:flex"> |
| 5 |
<div className="flex items-center gap-2 border-l-4 border-l-wp-alert-red bg-wp-notice-error p-3 text-gray-900"> |
| 6 |
<div className="text-wp-alert-red"> |
| 7 |
<svg |
| 8 |
xmlns="http://www.w3.org/2000/svg" |
| 9 |
fill="none" |
| 10 |
viewBox="0 0 24 24" |
| 11 |
strokeWidth={1.5} |
| 12 |
stroke="currentColor" |
| 13 |
className="size-6" |
| 14 |
> |
| 15 |
<title>{__('Error icon', 'extendify-local')}</title> |
| 16 |
<path |
| 17 |
strokeLinecap="round" |
| 18 |
strokeLinejoin="round" |
| 19 |
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" |
| 20 |
/> |
| 21 |
</svg> |
| 22 |
</div> |
| 23 |
<div className="text-sm">{children}</div> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
); |
| 27 |
|