mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
implemented twitter configuration parameters
This commit is contained in:
1 parent
345f591670
commit
7d287ccd08
18 files changed
+144
-37
No files matched your search
@@ -5,4 +5,8 @@ export const phoneState = {
|
||||
key: "phoneVisibility",
|
||||
default: false,
|
||||
}),
|
||||
phoneConfig: atom({
|
||||
key: "phoneConfig",
|
||||
default: null,
|
||||
}),
|
||||
};
|
||||
@@ -3,5 +3,6 @@ import { phoneState } from "./state";
|
||||
|
||||
export const usePhone = () => {
|
||||
const visibility = useRecoilValue(phoneState.visibility);
|
||||
return { visibility };
|
||||
const config = useRecoilValue(phoneState.phoneConfig);
|
||||
return { visibility, config };
|
||||
};
|
||||
@@ -5,6 +5,8 @@ import { usePhone } from "./usePhone";
|
||||
|
||||
export const usePhoneService = () => {
|
||||
const setVisibility = useSetRecoilState(phoneState.visibility);
|
||||
const setPhoneConfig = useSetRecoilState(phoneState.phoneConfig);
|
||||
useNuiEvent("PHONE", "setVisibility", setVisibility);
|
||||
useNuiEvent("PHONE", "phoneConfig", setPhoneConfig);
|
||||
return usePhone();
|
||||
};
|
||||
Reference in new issue
Block a user