mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
import { useRecoilState } from 'recoil';
|
|
import { noteStates } from './state';
|
|
|
|
interface NoteModalProps {
|
|
noteModal: boolean;
|
|
setNoteModal: (show: boolean) => void;
|
|
}
|
|
|
|
export const useNoteModal = (): NoteModalProps => {
|
|
const [noteModal, setNoteModal] = useRecoilState(noteStates.noteModal);
|
|
return { noteModal, setNoteModal };
|
|
};
|