mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
10 lines
378 B
TypeScript
10 lines
378 B
TypeScript
import { useSetRecoilState } from 'recoil';
|
|
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
|
import { dialState } from './state';
|
|
import { CallEvents } from '../../../../../typings/call';
|
|
|
|
export const useDialService = () => {
|
|
const setHistory = useSetRecoilState(dialState.history);
|
|
useNuiEvent('DIALER', CallEvents.SET_CALL_HISTORY, setHistory);
|
|
};
|