mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
8 lines
248 B
TypeScript
8 lines
248 B
TypeScript
import { useRecoilValue } from 'recoil';
|
|
import { ITransactions } from '../../../../../typings/bank';
|
|
import { bankState } from './state';
|
|
|
|
export const useTransactions = () => {
|
|
return useRecoilValue<ITransactions[]>(bankState.transactions);
|
|
};
|