| 1 |
import { PanelBody } from '@wordpress/components'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
import { AttributesPropsAndSetter } from '../../types'; |
| 4 |
import { CopyBtnSettings } from './buttons/sidebar/CopyBtnSettings'; |
| 5 |
|
| 6 |
export const ButtonsPanel = ({ |
| 7 |
attributes, |
| 8 |
setAttributes, |
| 9 |
}: AttributesPropsAndSetter & { bringAttentionToThemes?: boolean }) => { |
| 10 |
return ( |
| 11 |
<div className="code-block-pro-editor"> |
| 12 |
<PanelBody |
| 13 |
title={__('Buttons', 'code-block-pro')} |
| 14 |
initialOpen={false}> |
| 15 |
<CopyBtnSettings |
| 16 |
attributes={attributes} |
| 17 |
setAttributes={setAttributes} |
| 18 |
/> |
| 19 |
</PanelBody> |
| 20 |
</div> |
| 21 |
); |
| 22 |
}; |
| 23 |
|