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