mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 22:53:37 +08:00
ec5214f714
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
13 lines
395 B
TypeScript
13 lines
395 B
TypeScript
import type Mithril from 'mithril';
|
|
import type { ComponentAttrs } from '../Component';
|
|
import User from '../models/User';
|
|
export interface AvatarAttrs extends ComponentAttrs {
|
|
}
|
|
/**
|
|
* The `avatar` helper displays a user's avatar.
|
|
*
|
|
* @param user
|
|
* @param attrs Attributes to apply to the avatar element
|
|
*/
|
|
export default function avatar(user: User, attrs?: ComponentAttrs): Mithril.Vnode;
|