2022-11-22 10:26:14 +00:00
|
|
|
import { connect } from 'react-redux';
|
2023-05-28 14:38:10 +00:00
|
|
|
|
2022-11-22 10:26:14 +00:00
|
|
|
import { openModal, closeModal } from 'flavours/glitch/actions/modal';
|
2023-05-28 14:38:10 +00:00
|
|
|
import { isUserTouching } from 'flavours/glitch/is_mobile';
|
|
|
|
|
2022-11-22 10:26:14 +00:00
|
|
|
import Dropdown from '../components/dropdown';
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
isUserTouching,
|
2023-05-25 13:42:37 +00:00
|
|
|
onModalOpen: props => dispatch(openModal({ modalType: 'ACTIONS', modalProps: props })),
|
2023-06-04 20:05:45 +00:00
|
|
|
onModalClose: () => dispatch(closeModal({ modalType: undefined, ignoreFocus: false })),
|
2022-11-22 10:26:14 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(null, mapDispatchToProps)(Dropdown);
|