mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
* Add floating notifications :O * Add phone notifications and refactor calling ui * This is unsafe * Fix controls null check * Remove go to alert * Fix phone stuck after call * Remove lazy mount for Phone * Fix open/close cl_main * Use effect for notification visibility * Remove all alerts when phone closes * Avoid re-render useNuiEvent * It works now :c
7 lines
227 B
TypeScript
7 lines
227 B
TypeScript
import { useRecoilState } from 'recoil';
|
|
import { callerState } from './state';
|
|
|
|
export const useDuration = () => {
|
|
const [duration, setDuration] = useRecoilState(callerState.callDuration);
|
|
return { duration, setDuration}
|
|
} |