Module: ConfirmModal

ConfirmModal Component A reusable modal component to ask for user confirmation before executing a critical action.
Parameters:
Name Type Description
props Object The component props.
Properties
Name Type Description
isOpen boolean Determines if the modal is visible.
onClose function Function to call when the user cancels or closes the modal.
onConfirm function Function to call when the user confirms the action.
title string The title displayed at the top of the modal.
children React.ReactNode The content displayed inside the modal body.
Source:
Returns:
The modal element or null if not open.
Type
JSX.Element | null