UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

19 lines (18 loc) 633 B
import type { AuthUser } from "../../interfaces/models/User"; import type { UpdateUserParams } from "../../store/api/userApi"; export interface UseUserProps { } export interface UseUserValues { user: AuthUser | null; loading: boolean; updating: boolean; error: string | null; updateUser: (update: UpdateUserParams) => Promise<AuthUser>; clearError: () => void; } /** * Redux-powered hook that provides comprehensive user management * This replaces useUserData and provides the same interface with Redux state management */ declare function useUser(_?: UseUserProps): UseUserValues; export default useUser;