aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Types.js
blob: 5a495ff3576510f5f6fb7c8939ad87327f7d5df5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import PropTypes from 'prop-types';

export const UserType = PropTypes.shape({
    uid: PropTypes.number,
    uname: PropTypes.string,
    avatar: PropTypes.string
});

export const MessageType = PropTypes.shape({
    mid: PropTypes.number,
    user: UserType,
    timestamp: PropTypes.string.isRequired,
    body: PropTypes.string
});