This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/src/components/profile/IProfileComponentProps.ts
2017-10-30 20:48:18 +07:00

83 lines
1.2 KiB
TypeScript

import { Post } from 'core/domain/posts'
export interface IProfileComponentProps {
/**
* Router match
*
* @type {*}
* @memberof IProfileComponentProps
*/
match: any
/**
* User's post
*
* @type {{[postId: string]: Post}}
* @memberof IProfileComponentProps
*/
posts: {[postId: string]: Post}
/**
* String user full name
*
* @type {string}
* @memberof IProfileComponentProps
*/
name: string
/**
* User tag line
*
* @type {string}
* @memberof IProfileComponentProps
*/
tagLine: string
/**
* User's avatar address
*
* @type {string}
* @memberof IProfileComponentProps
*/
avatar: string
/**
* It's current user profile {true} or not {false}
*
* @type {boolean}
* @memberof IProfileComponentProps
*/
isAuthedUser: boolean
/**
* User's banner
*
* @type {string}
* @memberof IProfileComponentProps
*/
banner: string
/**
* User identifier
*
* @type {string}
* @memberof IProfileComponentProps
*/
userId: string
/**
* Load user's post
*
* @memberof IProfileComponentProps
*/
loadPosts: () => any
/**
* Load user's profile
*
* @memberof IProfileComponentProps
*/
loadUserInfo: () => any
}