import ModalDialog from '@givewp/components/AdminUI/ModalDialog'; import styles from './AddCampaignFormModal.module.scss'; import {__} from '@wordpress/i18n'; import {useRef, useState} from 'react'; export type EditorTypeOptionProps = { editorType: string; label: string; description: string; editorSelected: string; handleEditorSelected: any; }; const EditorSelectedIcon = () => { return ( ); }; /** * Editor Type Option component * * @since 4.0.0 */ const EditorTypeOption = ({ editorType, label, description, editorSelected, handleEditorSelected, }: EditorTypeOptionProps) => { const divRef = useRef(null); const labelRef = useRef(null); const handleDivClick = () => { labelRef.current.click(); }; return (
{label} {editorType === 'visualFormBuilder' && ( {__('Recommended', 'give')} )}

{description}

); }; /** * Form Modal component that renders a modal with a styled form inside * * @since 4.0.0 */ export default function AddCampaignFormModal({isOpen, handleClose, title, campaignId}: FormModalProps) { const [editorSelected, setEditorSelected] = useState(''); const handleEditorSelected = (event) => { setEditorSelected(event.target.value); }; return ( <>
{__('Proceed', 'give')}
); } interface FormModalProps { isOpen: boolean; handleClose: () => void; title: string; campaignId: string; }