feat(contacts/nui): interface for useModal

This commit is contained in:
Christopher committed 2021-01-14 18:58:50 +01:00
1 parent c249cfa2ec
commit 01291abe73
1 file changed
+5
@@ -1,6 +1,11 @@
import { useRecoilState } from "recoil";
import { contactsState } from "./state";
interface ModalProps {
showModal: boolean;
setShowModal: (show: boolean) => void;
}
export const useModal = () => {
const [showModal, setShowModal] = useRecoilState(contactsState.showModal);
return { showModal, setShowModal };