16 lines
357 B
JavaScript
16 lines
357 B
JavaScript
import {connect} from 'react-redux';
|
|
import {clearFile} from 'actions/publish';
|
|
import View from './view';
|
|
|
|
const mapStateToProps = ({ publish }) => {
|
|
return {
|
|
status : publish.status.status,
|
|
message: publish.status.message,
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = {
|
|
clearFile,
|
|
};
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(View);
|