function openModal(modalElement) {
  if (modalElement) {
    modalElement.classList.add('rev-Modal--open')
    modalElement.classList.remove('rev-Modal--closed')
  }
}
/**
 * Opens the given Modal component
 * @param {HTMLElement} modalElement The Modal component
 * @returns {void}
 */
Opens the given Modal component
@param {HTMLElement} modalElement The Modal component
@returns {void}
Opens the given Modal component @param { HTMLElement } modalElement The Modal component @returns { void }
function openModal(modalElement) {
  if (modalElement) {
    modalElement.classList.add('rev-Modal--open')
    modalElement.classList.remove('rev-Modal--closed')
  }
}
function openModal ( modalElement ) { if ( modalElement ) { modalElement . classList . add ( 'rev-Modal--open' ) modalElement . classList . remove ( 'rev-Modal--closed' ) } }
Opens the given Modal component
 @param {HTMLElement} modalElement The Modal component
 @returns {void}
Opens the given Modal component @param { HTMLElement } modalElement The Modal component @returns { void }