mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-25 02:36:20 +01:00
12 lines
206 B
JavaScript
12 lines
206 B
JavaScript
import useStore, { setUser } from 'store/app';
|
|
|
|
const selector = state => state.user;
|
|
|
|
export function useUser() {
|
|
const user = useStore(selector);
|
|
|
|
return { user, setUser };
|
|
}
|
|
|
|
export default useUser;
|