mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +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 { useRecoilState } from "recoil";
|
||||||
import { contactsState } from "./state";
|
import { contactsState } from "./state";
|
||||||
|
|
||||||
|
interface ModalProps {
|
||||||
|
showModal: boolean;
|
||||||
|
setShowModal: (show: boolean) => void;
|
||||||
|
}
|
||||||
|
|
||||||
export const useModal = () => {
|
export const useModal = () => {
|
||||||
const [showModal, setShowModal] = useRecoilState(contactsState.showModal);
|
const [showModal, setShowModal] = useRecoilState(contactsState.showModal);
|
||||||
return { showModal, setShowModal };
|
return { showModal, setShowModal };
|
||||||
|
|||||||
Reference in new issue
Block a user