mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(camera/nui): interface on useShareModal
This commit is contained in:
1 parent
ba027b67fd
commit
20e03e4981
1 file changed
+6
-1
@@ -1,7 +1,12 @@
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { photoState } from './state';
|
||||
|
||||
export const useShareModal = () => {
|
||||
interface ShareModalProps {
|
||||
shareModal: boolean;
|
||||
setShareModal: (show: boolean) => void;
|
||||
}
|
||||
|
||||
export const useShareModal = (): ShareModalProps => {
|
||||
const [ shareModal, setShareModal ] = useRecoilState(photoState.shareModal);
|
||||
return { shareModal, setShareModal }
|
||||
}
|
||||
Reference in new issue
Block a user