Feat(Contacts): New hook for showing modal

This commit is contained in:
chip committed 2020-10-16 18:31:48 +02:00
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 };
}