Files
VRCT/src-ui/logics/common/useHandleNetworkConnection.js
2025-02-07 17:57:27 +09:00

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,
};
};