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

+14
View File
@@ -0,0 +1,14 @@
import { useRecoilValue } from 'recoil';
import { photoState } from './state';
interface IPhotos {
image: string[];
map?: any;
}
export const usePhotos = (): IPhotos | null => {
const photos = useRecoilValue<IPhotos | null>(photoState.photos);
return photos;
}