function Example() { const [showAlertDialog, setShowAlertDialog] = React.useState(false) const handleClose = () => setShowAlertDialog(false) return ( <> Are you sure you want to delete this post? Deleting the post will remove it permanently and cannot be undone. Please confirm if you want to proceed. ) }