mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
7 lines
267 B
TypeScript
7 lines
267 B
TypeScript
import { useRecoilState } from 'recoil';
|
|
import { contactsState } from './state';
|
|
|
|
export const useContactDetail = (): any => {
|
|
const [ contactDetail, setContactDetail ] = useRecoilState(contactsState.contactDetail);
|
|
return { contactDetail, setContactDetail };
|
|
} |