mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-23 18:41:36 +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;
|