mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
10 lines
360 B
TypeScript
10 lines
360 B
TypeScript
import { useSetRecoilState } from 'recoil'
|
|
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
|
import { useNotes } from './useNotes';
|
|
import { noteStates } from './state';
|
|
|
|
export const useNotesService = () => {
|
|
const setNotes = useSetRecoilState(noteStates.noteItems);
|
|
useNuiEvent('NOTES', 'setNotes', setNotes);
|
|
return useNotes();
|
|
} |