PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.7
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.7
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
visualizer / classes / Visualizer / Gutenberg / src / Components / PanelButton.js

PanelButton.js in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.10.7, at classes/Visualizer/Gutenberg/src/Components/PanelButton.js

39 lines 996 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * External dependencies
3 */
4 import classnames from 'classnames';
5
6 /**
7 * WordPress dependencies
8 */
9 const {
10 Button,
11 Dashicon,
12 G,
13 Path,
14 SVG
15 } = wp.components;
16
17 function PanelButton({ label, icon, className, isBack, onClick }) {
18 const classes = classnames( 'components-panel__body', 'components-panel__body-button', className, { 'visualizer-panel-back': isBack });
19 return (
20 <div className={ classes }>
21 <h2 className="components-panel__body-title">
22 <Button
23 className="components-panel__body-toggle"
24 onClick={ onClick }
25 >
26 <SVG className="components-panel__arrow" width="24px" height="24px" viewBox="-12 -12 48 48" xmlns="http://www.w3.org/2000/svg">
27 <G><Path fill="none" d="M0,0h24v24H0V0z" /></G>
28 <G><Path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z" /></G>
29 </SVG>
30 { icon && <Dashicon icon={ icon } className="components-panel__icon" /> }
31 { label }
32 </Button>
33 </h2>
34 </div>
35 );
36 }
37
38 export default PanelButton;
39