mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
13 lines
334 B
TypeScript
13 lines
334 B
TypeScript
import { useRecoilState } from 'recoil';
|
|
import { contactsState } from './state';
|
|
|
|
interface ModalProps {
|
|
showModal: boolean;
|
|
setShowModal: (show: boolean) => void;
|
|
}
|
|
|
|
export const useModal = (): ModalProps => {
|
|
const [showModal, setShowModal] = useRecoilState(contactsState.showModal);
|
|
return { showModal, setShowModal };
|
|
};
|