mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
feat(contacts/nui): interface for useModal
This commit is contained in:
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 };
|
||||
|
||||
Reference in new issue
Block a user