mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
12 lines
391 B
TypeScript
12 lines
391 B
TypeScript
import { useRecoilState } from 'recoil';
|
|
import { contactsState } from './state';
|
|
|
|
interface ModalProps {
|
|
showContactModal: boolean;
|
|
setShowContactModal: (show: boolean) => void;
|
|
}
|
|
|
|
export const useContactModal = (): ModalProps => {
|
|
const [ showContactModal, setShowContactModal ] = useRecoilState(contactsState.showContactsModal);
|
|
return { showContactModal, setShowContactModal };
|
|
} |