@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
14 lines (13 loc) • 544 B
TypeScript
import type { AuthUser } from "../../interfaces/models/User";
import { type UpdateUserParams } from "../../store/api/userApi";
/**
* Redux-powered hook that provides current user management actions
* Focused on current user operations only
*/
export declare function useUserActions(): {
setUser: (user: AuthUser | null) => void;
clearUser: () => void;
updateUser: (projectId: string, userId: string, update: UpdateUserParams, currentUser?: any) => Promise<AuthUser>;
clearError: () => void;
};
export default useUserActions;