import { RichText } from '@wordpress/block-editor';
import { useCoreButtonProps } from '@l-clutch/core/block-editor';
export default function edit({ attributes, setAttributes }) {
const onChangeText = (newText) => {
newText = newText.replace(/(\r?\n)|(
)/g, ' ');
setAttributes({ ...attributes, text: newText });
};
const { blockProps, wrapperProps, buttonProps } = useCoreButtonProps({ attributes });
return (