File size: 694 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
// @flow
import * as React from 'react';
import type { GetThreadType } from 'shared/graphql/queries/thread/getThread';
import MessageCount from './messageCount';
import { ThreadActivityWrapper } from './style';
type Props = {
currentUser: ?Object,
thread: GetThreadType,
active: boolean,
};
class ThreadActivity extends React.Component<Props> {
render() {
const { thread, active, currentUser } = this.props;
if (!thread) return null;
return (
<ThreadActivityWrapper>
<MessageCount
currentUser={currentUser}
thread={thread}
active={active}
/>
</ThreadActivityWrapper>
);
}
}
export default ThreadActivity;
|