MCPcopy Create free account
hub / github.com/hashintel/hash / useUserPreferences

Function useUserPreferences

apps/hash-frontend/src/shared/use-user-preferences.ts:62–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60};
61
62export const useUserPreferences = (): UserPreferences => {
63 const { authenticatedUser } = useAuthInfo();
64
65 return authenticatedUser?.preferences ?? defaultUserPreferences;
66};

Callers 7

SidebarItemDisplaySwitchFunction · 0.90
PageSidebarFunction · 0.90
FavoritesListFunction · 0.90
AccountEntityTypeListFunction · 0.90
AccountEntitiesListFunction · 0.90
AccountPageListFunction · 0.90
FavoriteMenuItemFunction · 0.90

Calls 1

useAuthInfoFunction · 0.90

Tested by

no test coverage detected