mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(bank/nui): state and hooks for alert and notificatioln
This commit is contained in:
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 }
|
||||
}
|
||||
Reference in new issue
Block a user