16 lines
463 B
JavaScript
16 lines
463 B
JavaScript
import { useNotificationStatus } from "@logics_common";
|
|
|
|
export const useHandleNetworkConnection = () => {
|
|
|
|
const { showNotification_Error } = useNotificationStatus();
|
|
|
|
const handleNetworkConnection = (is_network_connected) => {
|
|
if (!is_network_connected) {
|
|
showNotification_Error("Network is not connected. Some of the function will not work.");
|
|
}
|
|
};
|
|
|
|
return {
|
|
handleNetworkConnection,
|
|
};
|
|
}; |