PATH:
home
/
sparklp6
/
public_html
/
website_356c8563
/
wp-content
/
plugins
/
essential-blocks
/
src
/
blocks
/
icon
/
src
import { EBDisplayIconSave, BlockProps } from "@essential-blocks/controls"; const Save = ({ attributes }) => { const { blockId, icon, iconView, iconShape, classHook } = attributes; const viewClass = iconView !== "default" ? " eb-icon-view-" + iconView : ""; const shapeClass = iconView !== "default" ? " eb-icon-shape-" + iconShape : ""; return ( <BlockProps.Save attributes={attributes}> <div className={`eb-parent-wrapper eb-parent-${blockId} ${classHook || ''}`} > <div className={`eb-icon-wrapper ${blockId}${` eb-icon-view-${iconView}`}${shapeClass}`} data-id={blockId} > <div className="eb-icon-container"> <EBDisplayIconSave icon={icon} /> </div> </div> </div> </BlockProps.Save> ); }; export default Save;
[-] example.js
[edit]
[-] edit.js
[edit]
[-] deprecated.js
[edit]
[-] .htaccess
[edit]
[-] style.js
[edit]
[+]
constants
[-] save.js
[edit]
[-] style.scss
[edit]
[-] index.js
[edit]
[-] icon.svg
[edit]
[-] inspector.js
[edit]
[+]
..
[-] attributes.js
[edit]