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 (
{description}