UNPKG

@quillforms/blocklib-welcome-screen-block

Version:
31 lines 818 B
import { createElement } from "react"; /** * QuillForms Dependencies */ import { BaseControl, ControlWrapper, ControlLabel, TextControl } from '@quillforms/admin-components'; const WelcomeScreenControls = ({ attributes, setAttributes }) => { // const { attributes, setAttributes } = props; const { buttonText } = attributes; const handleChange = event => { setAttributes({ buttonText: event.target.value }); }; return createElement(BaseControl, null, createElement(ControlWrapper, { orientation: "vertical" }, createElement(ControlLabel, { label: "Button Text" }), createElement(TextControl, { value: buttonText, onChange: val => setAttributes({ buttonText: val }) }))); }; export default WelcomeScreenControls; //# sourceMappingURL=controls.js.map