mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
14 lines
374 B
TypeScript
14 lines
374 B
TypeScript
import { useRecoilValue } from 'recoil';
|
|
|
|
import { Transfer } from '../../../../../typings/bank';
|
|
import { bankState } from './state';
|
|
|
|
interface IBankNotification {
|
|
notification: Transfer | null;
|
|
}
|
|
|
|
export const useBankNotification = (): IBankNotification => {
|
|
const notification = useRecoilValue<Transfer | null>(bankState.notification);
|
|
return { notification };
|
|
};
|