mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
11 lines
392 B
TypeScript
11 lines
392 B
TypeScript
import { useNuiEvent } from "../../../os/nui-events/hooks/useNuiEvent";
|
|
import { useSetRecoilState } from "recoil";
|
|
import { contactsState } from "./state";
|
|
import { useContacts } from "./useContacts";
|
|
|
|
export const useContactsService = () => {
|
|
const setContacts = useSetRecoilState(contactsState.contacts);
|
|
useNuiEvent("CONTACTS", "setContacts", setContacts);
|
|
return useContacts();
|
|
};
|