mirror of https://github.com/tooot-app/app
18 lines
456 B
JavaScript
18 lines
456 B
JavaScript
import PropTypes from 'prop-types'
|
|
import propTypesAccount from './account'
|
|
import propTypesStatus from './status'
|
|
|
|
const propTypesNotification = PropTypes.shape({
|
|
// Base
|
|
id: PropTypes.string.isRequired,
|
|
type: PropTypes.oneOf(['follow', 'mention', 'reblog', 'favourite', 'poll'])
|
|
.isRequired,
|
|
created_at: PropTypes.string.isRequired,
|
|
account: propTypesAccount,
|
|
|
|
// Others
|
|
status: propTypesStatus
|
|
})
|
|
|
|
export default propTypesNotification
|