mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
tweak(call/nui): duration as global state
This commit is contained in:
1 parent
dd008775f9
commit
d3b04f4cd9
6 files changed
+36
-13
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { callerState } from './state';
|
||||
|
||||
export const useDuration = () => {
|
||||
const [duration, setDuration] = useRecoilState(callerState.callDuration);
|
||||
return { duration, setDuration}
|
||||
}
|
||||
Reference in new issue
Block a user