| 1 |
import { __ } from '@wordpress/i18n' |
| 2 |
import { Icon } from '@wordpress/icons' |
| 3 |
import { chevron, robot } from '@chat/svg' |
| 4 |
|
| 5 |
export const ChatButton = ({ showDialog, onClick }) => { |
| 6 |
return ( |
| 7 |
<div className="fixed bottom-6 right-6"> |
| 8 |
<button |
| 9 |
type="button" |
| 10 |
className="rounded-full outline-none border-none bg-design-main flex items-center p-3 cursor-pointer hover:bg-design-dark" |
| 11 |
aria-label={__('AI Chat', 'extendify')} |
| 12 |
onClick={onClick}> |
| 13 |
<Icon |
| 14 |
icon={showDialog ? chevron : robot} |
| 15 |
className="text-design-text fill-current w-6 h-6" |
| 16 |
/> |
| 17 |
</button> |
| 18 |
</div> |
| 19 |
) |
| 20 |
} |
| 21 |
|