mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
14 lines
384 B
TypeScript
14 lines
384 B
TypeScript
import { useRecoilValue } from 'recoil';
|
|
|
|
import { Tweet } from '../../../common/typings/twitter';
|
|
import { twitterState } from './state';
|
|
|
|
interface ITwitterNotification {
|
|
notification: Tweet | null;
|
|
}
|
|
|
|
export const useTwitterNotification = (): ITwitterNotification => {
|
|
const notification = useRecoilValue<Tweet | null>(twitterState.notification);
|
|
return { notification };
|
|
};
|