File size: 800 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 { connect } from 'react-redux';
import compose from 'recompose/compose';
import type { GetThreadType } from 'shared/graphql/queries/thread/getThread';
import type { Dispatch } from 'redux';
import { ActionBarContainer } from '../style';
import ActionsDropdown from './actionsDropdown';
type Props = {
thread: GetThreadType,
currentUser: Object,
dispatch: Dispatch<Object>,
title: string,
};
class ActionBar extends React.Component<Props> {
render() {
const { thread } = this.props;
return (
<ActionBarContainer>
<div style={{ display: 'flex', alignItems: 'center' }}>
<ActionsDropdown thread={thread} />
</div>
</ActionBarContainer>
);
}
}
export default compose(connect())(ActionBar);
|