initial commit for camera app

This commit is contained in:
Christopher committed 2020-12-04 23:09:20 +01:00
1 parent 580fb12e92
commit 5b85efedf1
13 files changed
+334

No files matched your search

@@ -0,0 +1,10 @@
import { useSetRecoilState } from 'recoil';
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
import { photoState } from './state';
import { usePhotos } from './usePhotos';
export const usePhotoService = () => {
const setPhotos = useSetRecoilState(photoState.photos);
useNuiEvent('CAMERA', 'setPhotos', setPhotos);
return usePhotos();
}