| 1 |
import { Button } from '@wordpress/components' |
| 2 |
import { __ } from '@wordpress/i18n' |
| 3 |
import { General } from '@library/api/General' |
| 4 |
|
| 5 |
export default function FeedbackNotice() { |
| 6 |
return ( |
| 7 |
<> |
| 8 |
<span className="text-black"> |
| 9 |
{__( |
| 10 |
'Tell us how to make the Extendify Library work better for you', |
| 11 |
'extendify', |
| 12 |
)} |
| 13 |
</span> |
| 14 |
<span className="px-2 opacity-50" aria-hidden="true"> |
| 15 |
| |
| 16 |
</span> |
| 17 |
<div className="flex items-center justify-center space-x-2"> |
| 18 |
<Button |
| 19 |
variant="link" |
| 20 |
className="h-auto p-0 text-black underline hover:no-underline" |
| 21 |
href={`https://extendify.com/feedback/?utm_source=${window.extendifyData.sdk_partner}&utm_medium=library&utm_campaign=feedback-notice&utm_content=give-feedback`} |
| 22 |
onClick={async () => |
| 23 |
await General.ping('feedback-notice-click') |
| 24 |
} |
| 25 |
target="_blank"> |
| 26 |
{__('Give feedback', 'extendify')} |
| 27 |
</Button> |
| 28 |
</div> |
| 29 |
</> |
| 30 |
) |
| 31 |
} |
| 32 |
|