mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(notes/nui): interface for useNoteModal
This commit is contained in:
1 parent
20e03e4981
commit
92579dd213
1 file changed
+6
-1
@@ -1,7 +1,12 @@
|
|||||||
import { useRecoilState } from 'recoil';
|
import { useRecoilState } from 'recoil';
|
||||||
import { noteStates } from './state';
|
import { noteStates } from './state';
|
||||||
|
|
||||||
export const useNoteModal = () => {
|
interface NoteModalProps {
|
||||||
|
noteModal: boolean;
|
||||||
|
setNoteModal: (show: boolean) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const useNoteModal = (): NoteModalProps => {
|
||||||
const [noteModal, setNoteModal] = useRecoilState(noteStates.noteModal);
|
const [noteModal, setNoteModal] = useRecoilState(noteStates.noteModal);
|
||||||
return { noteModal, setNoteModal };
|
return { noteModal, setNoteModal };
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user