mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
9 lines
307 B
TypeScript
9 lines
307 B
TypeScript
import { useRecoilState } from 'recoil';
|
|
import { IContactAlert } from '../../../common/typings/contact';
|
|
import { contactsState } from './state';
|
|
|
|
export const useContactAlert = (): IContactAlert => {
|
|
const [alert, setAlert] = useRecoilState(contactsState.contactAlert);
|
|
return { alert, setAlert };
|
|
};
|