feat(bank/nui): state and hooks for alert and notificatioln

This commit is contained in:
chip committed 2020-11-04 16:11:12 +01:00
1 parent 3d865dd887
commit e6cee7b414
4 files changed
+30 -7

No files matched your search

@@ -0,0 +1,13 @@
import { useRecoilValue } from 'recoil';
import { Transfer } from '../../../common/interfaces/bank';
import { bankState } from './state';
interface IBankNotification {
notification: Transfer | null;
}
export const useBankNotification = (): IBankNotification => {
const notification = useRecoilValue<Transfer | null>(bankState.notification);
return { notification }
}