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

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

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