Modals can have an optional footer section, which is typically used to
display action buttons related to the modal content. The footer can be
added by passing a string or a UI component to the footer
parameter of the modal. It's common to include
buttons such as "Save", "Cancel", or "Close" in the footer to allow users
to easily interact with the modal and perform actions based on its content.
modal_close_handle is a special UI component that can be used
in the footer to create a button that closes the modal when clicked. It
takes the same id as the modal it should close, ensuring that the correct
modal is dismissed when the button is activated.