import React from 'react'; import { Modal, ModalVariant, Button, Form, FormGroup, Popover, TextInput } from '@patternfly/react-core'; import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'; export const ModalWithForm: React.FunctionComponent = () => { const [isModalOpen, setModalOpen] = React.useState(false); const [nameValue, setNameValue] = React.useState(''); const [emailValue, setEmailValue] = React.useState(''); const [addressValue, setAddressValue] = React.useState(''); const handleModalToggle = () => { setModalOpen(!isModalOpen); }; const handleNameInputChange = (value: string) => { setNameValue(value); }; const handleEmailInputChange = (value: string) => { setEmailValue(value); }; const handleAddressInputChange = (value: string) => { setAddressValue(value); }; return ( Confirm , ]} > ); };