export const modalStateClasses = ({ isOpened, isClosing } = {}) => {
  return {
    'modal-in': isOpened.current && !isClosing.current,
    'modal-out': isClosing.current,
  };
};

export const modalStateClasses = ({ isOpened, isClosing } = {}) => {
  return {
    'modal-in': isOpened.value && !isClosing.value,
    'modal-out': isClosing.value,
  };
};

Update modal-state-classes.js