mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
working notification
This commit is contained in:
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 };
|
||||
};
|
||||
Reference in new issue
Block a user