This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2022-11-22 02:26:14 -08:00
|
|
|
import { connect } from 'react-redux';
|
2023-05-28 07:38:10 -07:00
|
|
|
|
2022-11-22 02:26:14 -08:00
|
|
|
import { openModal, closeModal } from 'flavours/glitch/actions/modal';
|
2023-05-28 07:38:10 -07:00
|
|
|
import { isUserTouching } from 'flavours/glitch/is_mobile';
|
|
|
|
|
2022-11-22 02:26:14 -08:00
|
|
|
import Dropdown from '../components/dropdown';
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
isUserTouching,
|
2023-05-25 06:42:37 -07:00
|
|
|
onModalOpen: props => dispatch(openModal({ modalType: 'ACTIONS', modalProps: props })),
|
2023-06-04 13:05:45 -07:00
|
|
|
onModalClose: () => dispatch(closeModal({ modalType: undefined, ignoreFocus: false })),
|
2022-11-22 02:26:14 -08:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(null, mapDispatchToProps)(Dropdown);
|