UNPKG

@adonis-agora/authkit-react

Version:

Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.

23 lines (22 loc) 611 B
import type { AuthUser } from '../types.js'; export interface AvatarProps { user: Pick<AuthUser, 'name' | 'email' | 'avatarUrl'>; size?: number; className?: string; } export declare function Avatar({ user, size, className }: AvatarProps): import("react").DetailedReactHTMLElement<{ className: string; src: string; alt: string; style: { width: number; height: number; }; }, HTMLElement> | import("react").DetailedReactHTMLElement<{ className: string; style: { width: number; height: number; }; 'aria-hidden': true; }, HTMLElement>;