chore: user apikeys
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// 全局共享数据示例
|
||||
import { DEFAULT_NAME } from '@/constants';
|
||||
// import { DEFAULT_NAME } from '@/constants';
|
||||
import { useState } from 'react';
|
||||
|
||||
const useUser = () => {
|
||||
const [name, setName] = useState<string>(DEFAULT_NAME);
|
||||
const useGlobalState = () => {
|
||||
const [globalState, setGlobalState] = useState<any>({});
|
||||
return {
|
||||
name,
|
||||
setName,
|
||||
globalState,
|
||||
setGlobalState
|
||||
};
|
||||
};
|
||||
|
||||
export default useUser;
|
||||
export default useGlobalState;
|
||||
|
||||
Reference in New Issue
Block a user