mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
10 lines
376 B
TypeScript
10 lines
376 B
TypeScript
import { useSetRecoilState } from 'recoil';
|
|
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
|
import { photoState } from './state';
|
|
import { PhotoEvents } from '../../../../../typings/photo';
|
|
|
|
export const usePhotoService = () => {
|
|
const setPhotos = useSetRecoilState(photoState.photos);
|
|
useNuiEvent('CAMERA', PhotoEvents.SEND_PHOTOS, setPhotos);
|
|
};
|