mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
initial commit for camera app
This commit is contained in:
1 parent
580fb12e92
commit
5b85efedf1
13 files changed
+334
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user