diff --git a/common/recoil/users/users.hooks.ts b/common/recoil/users/users.hooks.ts new file mode 100644 index 0000000..3c963ed --- /dev/null +++ b/common/recoil/users/users.hooks.ts @@ -0,0 +1,12 @@ +import { useRecoilValue } from "recoil"; +import {userIds, usersAtom } from "./users.atoms"; + +export const useUserIds = () => { + const users= useRecoilValue(userIds); + return users; +}; + +export const useUsers = () => { + const users = useRecoilValue(usersAtom); + return users; +}; \ No newline at end of file