SuccessAlert component.
This component is responsible for displaying a success alert message.
It uses the successAlert and onClose props to determine the message and what happens when the alert is closed.
The alert is displayed in a modal that is centered on the screen.
The modal contains a title, the success message, and a close button.
The visibility of the modal is controlled by the successAlert prop.
If the successAlert prop is truthy, the modal is displayed; otherwise, it is hidden.
SuccessAlert component. This component is responsible for displaying a success alert message. It uses the successAlert and onClose props to determine the message and what happens when the alert is closed. The alert is displayed in a modal that is centered on the screen. The modal contains a title, the success message, and a close button. The visibility of the modal is controlled by the successAlert prop. If the successAlert prop is truthy, the modal is displayed; otherwise, it is hidden.