mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-08 08:44:27 +00:00
18 lines
466 B
React
18 lines
466 B
React
|
import { connect } from 'react-redux';
|
||
|
import ComposerDrawer from '../components/composer_drawer';
|
||
|
import { publish } from '../actions/statuses';
|
||
|
|
||
|
const mapStateToProps = function (state, props) {
|
||
|
return {};
|
||
|
};
|
||
|
|
||
|
const mapDispatchToProps = function (dispatch) {
|
||
|
return {
|
||
|
onSubmit: function (text, in_reply_to_id) {
|
||
|
dispatch(publish(text, in_reply_to_id));
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(ComposerDrawer);
|