PluginProbe
Extendify / 1.6.1
Extendify v1.6.1
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / src / Chat / components / ChatButton.js

ChatButton.js in Extendify 1.6.1, at src/Chat/components/ChatButton.js

21 lines 732 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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