mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-24 02:57:53 +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;
|