import { bokez } from '../../global';
import { CloseIcon } from '../../icons';
const { __ } = wp.i18n;
const { Component } = wp.element;
const {
PanelColorSettings,
InspectorControls,
AlignmentToolbar,
BlockControls,
RichText
} = wp.editor;
const {
SelectControl,
ToggleControl,
} = wp.components;
export class Edit extends Component{
render(){
const {
isSelected,
setAttributes,
attributes
} = this.props
const {
message,
type,
backgroundColor,
textColor,
dismissible,
uid,
alignment
} = attributes
const style = {
'text-align': alignment,
'background-color': backgroundColor,
};
if( uid === '' ){
setAttributes({ uid : bokez.uniqueID() });
}
return [
isSelected && (