mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
* Make Camera app use router * Remove unused hooks * Fucking communicate messages with camera with router * Improved sharing in messages flow * Fix clipboard * Removeunused imports * improve routing helpers * Fix bug :D * Fix stupid thing * Add docs to useQueryParams hook
12 lines
272 B
TypeScript
12 lines
272 B
TypeScript
import { useRecoilValue } from 'recoil';
|
|
import { photoState } from './state';
|
|
|
|
export interface ICameraPhoto {
|
|
id: string;
|
|
image: string;
|
|
}
|
|
|
|
export const usePhotos = (): ICameraPhoto[] | null => {
|
|
return useRecoilValue<ICameraPhoto[] | null>(photoState.photos);
|
|
};
|