working typescript version

This commit is contained in:
erik-sn committed 2020-10-07 12:19:55 -04:00
1 parent 581d6011e0
commit cff746aa38
119 files changed
+247 -189

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { useNuiEvent } from "../../os/nui-events/hooks/useNuiEvent";
import { useSetRecoilState } from "recoil";
import { callerState } from "./state";
import { useCall } from "./useCall";
export const useCallService = () => {
const setCaller = useSetRecoilState(callerState.caller);
useNuiEvent("CALL", "setCaller", setCaller);
return useCall();
};