feat(bank/nui): New hook for alert

This commit is contained in:
chip committed 2020-10-20 18:35:49 +02:00
1 parent 5dfc5a890d
commit e85d0a5298
1 file changed
+7
@@ -0,0 +1,7 @@
import { useRecoilState } from 'recoil';
import { bankState } from './state';
export const useBankAlert = () => {
const [ bankAlert, setBankAlert ] = useRecoilState(bankState.bankAlert);
return { bankAlert, setBankAlert };
}