13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
import { useCallback } from "react";
|
|
import useSendAlertSMS from "./useSendAlertSMS";
|
|
|
|
export default function useSendAlertSMSToEmergency() {
|
|
const sendAlertSMS = useSendAlertSMS();
|
|
return useCallback(
|
|
async ({ alert }) => {
|
|
const recipients = ["114"];
|
|
return sendAlertSMS({ recipients, alert });
|
|
},
|
|
[sendAlertSMS],
|
|
);
|
|
}
|