mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
13 lines
362 B
TypeScript
13 lines
362 B
TypeScript
import { useRecoilState } from 'recoil';
|
|
import { bankState } from './state';
|
|
|
|
interface BankModalProps {
|
|
showBankModal: boolean;
|
|
setShowBankModal: (show: boolean) => void;
|
|
}
|
|
|
|
export const useBankModal = (): BankModalProps => {
|
|
const [showBankModal, setShowBankModal] = useRecoilState(bankState.bankModal);
|
|
return { showBankModal, setShowBankModal };
|
|
};
|