Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Modal from './Modal';
import {connect} from 'redux-zero/preact';
import actions from '../../Store/Actions';
const mapToProps = ({showModal, listService}) => ({showModal, listService});
export default connect(
mapToProps,
actions,
)(Modal);
const mapToProps = ({
showModal,
isFirstVisit,
listService,
messages,
locale,
}) => ({
showModal,
isFirstVisit,
listService,
messages,
locale,
});
export default connect(
mapToProps,
actions,
)(Mask);
import {connect} from 'redux-zero/preact';
import actions from '../../Store/Actions';
import Banner from './Banner';
const mapToProps = ({showBanner}) => ({
showBanner,
});
export default connect(
mapToProps,
actions,
)(Banner);
import ListElement from './ListElement';
import {connect} from 'redux-zero/preact';
import actions from '../../Store/Actions';
const mapToProps = ({showModal, listService}) => ({showModal, listService});
export default connect(
mapToProps,
actions,
)(ListElement);
import {connect} from 'redux-zero/preact';
import actions from '../../Store/Actions';
import BTActions from './BtActions';
export default connect(
null,
actions,
)(BTActions);
return messages[locale][string] || string;
};
render() {
return (
<div>
</div>
);
}
}
const mapToProps = ({locale, messages}) => ({locale, messages});
export default connect(
mapToProps,
actions,
)(App);