PluginProbe
Extendify / 1.6.1
Extendify v1.6.1
3.2.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 All 127 releases
extendify / src / Chat / components / dialog / Header.js

Header.js in Extendify 1.6.1, at src/Chat/components/dialog/Header.js

34 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Icon } from '@wordpress/icons'
2 import { chevron, robot } from '@chat/svg'
3
4 export const Header = ({ question, reset }) => {
5 return (
6 <header className="flex items-center gap-4">
7 {question && (
8 <button
9 type="button"
10 onClick={reset}
11 className="bg-transparent border-none p-0 cursor-pointer">
12 <Icon
13 icon={chevron}
14 className="text-design-text fill-current h-4 transform rotate-90"
15 />
16 </button>
17 )}
18 {!question && window.extAssistData?.partnerLogo && (
19 <img
20 className="h-8 w-auto"
21 src={window.extAssistData.partnerLogo}
22 alt={window.extAssistData?.partnerName || ''}
23 />
24 )}
25 <div className="ml-auto rounded-full bg-white p-2 flex items-center">
26 <Icon
27 icon={robot}
28 className="text-design-main fill-current w-4 h-4"
29 />
30 </div>
31 </header>
32 )
33 }
34