| 1 |
import { external, Icon } from '@wordpress/icons' |
| 2 |
|
| 3 |
export const Support = () => { |
| 4 |
if ( |
| 5 |
!window.extChatData?.supportUrl || |
| 6 |
!window.extChatData?.supportMessage |
| 7 |
) { |
| 8 |
return <div className="bg-design-main h-32" /> |
| 9 |
} |
| 10 |
|
| 11 |
return ( |
| 12 |
<div className="px-6 py-8"> |
| 13 |
<a |
| 14 |
href={window.extChatData.supportUrl} |
| 15 |
target="_blank" |
| 16 |
rel="noopener noreferrer" |
| 17 |
className="text-sm text-gray-800 no-underline border border-gray-300 border-solid rounded py-3 px-4 flex items-center gap-4"> |
| 18 |
<span>{window.extChatData.supportMessage}</span> |
| 19 |
<Icon icon={external} className="w-8" /> |
| 20 |
</a> |
| 21 |
</div> |
| 22 |
) |
| 23 |
} |
| 24 |
|