import { createElement, useRef } from '@wordpress/element' import { __ } from 'ct-i18n' import { InspectorControls, useBlockProps, withColors, } from '@wordpress/block-editor' import Preview from './Preview' import ColorsPanel from '../../components/ColorsPanel' const Edit = ({ clientId, textColor, setTextColor, linkColor, setLinkColor, linkHoverColor, setLinkHoverColor, className, }) => { const navRef = useRef() const blockProps = useBlockProps({ ref: navRef, className: { 'ct-breadcrumbs': true, className, }, style: { color: textColor?.color, '--theme-link-initial-color': linkColor?.color, '--theme-link-hover-color': linkHoverColor?.color, }, }) return ( <>