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