import { FC, useState } from 'react'; import { TextField, Box } from '@mui/material'; import { Dialogue } from '../../../common/Dialogue/Dialogue'; interface IChangeRequestDialogueProps { open: boolean; onConfirm: (comment?: string) => void; onClose: () => void; } export const ChangeRequestRejectDialogue: FC = ({ open, onConfirm, onClose, }) => { const [commentText, setCommentText] = useState(''); return ( onConfirm(commentText)} onClose={onClose} title='Reject changes' fullWidth > Add an optional comment why you reject those changes setCommentText(e.target.value)} value={commentText} /> ); };