mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
I really hope I didnt fuck anything up now
This commit is contained in:
1 parent
ad20755608
commit
ec37fcde46
67 files changed
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { useRecoilState, atom } from "recoil";
|
||||
|
||||
const contactListState = atom({
|
||||
key: "contactList",
|
||||
default: [
|
||||
{
|
||||
id: 0,
|
||||
display: "Test Contact",
|
||||
phoneNumber: "000-1111",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
display: "Test Contact 2",
|
||||
phoneNumber: "000-1112",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
export const useContacts = () => {
|
||||
const [contactList, setContactList] = useRecoilState(contactListState);
|
||||
return { contactList, setContactList };
|
||||
};
|
||||
Reference in new issue
Block a user