working notification

This commit is contained in:
erik-sn committed 2020-10-17 21:40:53 -04:00
1 parent 7d27a6bddf
commit b2466f0e15
12 files changed
+236 -13

No files matched your search

@@ -0,0 +1,13 @@
import { useRecoilValue } from "recoil";
import { Tweet } from "../interfaces";
import { twitterState } from "./state";
interface ITwitterNotification {
notification: Tweet | null;
}
export const useTwitterNotification = (): ITwitterNotification => {
const notification = useRecoilValue<Tweet | null>(twitterState.notification);
return { notification };
};