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