mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
10 lines
365 B
TypeScript
10 lines
365 B
TypeScript
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();
|
|
} |