mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-18 04:43:24 +00:00
13 lines
452 B
JavaScript
13 lines
452 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import { isUserTouching } from 'flavours/glitch/is_mobile';
|
||
|
import { openModal, closeModal } from 'flavours/glitch/actions/modal';
|
||
|
import Dropdown from '../components/dropdown';
|
||
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
isUserTouching,
|
||
|
onModalOpen: props => dispatch(openModal('ACTIONS', props)),
|
||
|
onModalClose: () => dispatch(closeModal()),
|
||
|
});
|
||
|
|
||
|
export default connect(null, mapDispatchToProps)(Dropdown);
|