mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(Contacts): New hook for showing modal
This commit is contained in:
1 parent
6390308400
commit
d329eb6a5b
1 file changed
+7
@@ -0,0 +1,7 @@
|
|||||||
|
import { useRecoilState } from 'recoil';
|
||||||
|
import { contactsState } from './state';
|
||||||
|
|
||||||
|
export const useModal = () => {
|
||||||
|
const [ showModal, setShowModal ] = useRecoilState(contactsState.showModal);
|
||||||
|
return { showModal, setShowModal };
|
||||||
|
}
|
||||||
Reference in new issue
Block a user