UNPKG

@quillforms/blocklib-welcome-screen-block

Version:
35 lines 980 B
/** * QuillForms Dependencies */ import { BaseControl, ControlWrapper, ControlLabel, TextControl } from '@quillforms/admin-components'; import { __ } from '@wordpress/i18n'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; const WelcomeScreenControls = ({ attributes, setAttributes }) => { // const { attributes, setAttributes } = props; const { buttonText } = attributes; const handleChange = event => { setAttributes({ buttonText: event.target.value }); }; return /*#__PURE__*/_jsx(BaseControl, { children: /*#__PURE__*/_jsxs(ControlWrapper, { orientation: "vertical", children: [/*#__PURE__*/_jsx(ControlLabel, { label: __('Button Text', 'quillforms') }), /*#__PURE__*/_jsx(TextControl, { value: buttonText, onChange: val => setAttributes({ buttonText: val }) })] }) }); }; export default WelcomeScreenControls; //# sourceMappingURL=controls.js.map