Rev 3538 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import { useContext } from 'react';import { AlertModalContext } from '../providers';export const useAlertModal = () => {const { show, title, message, showAlert, closeAlert, onConfirm, onCancel } =useContext(AlertModalContext);return { show, title, message, showAlert, closeAlert, onConfirm, onCancel };};