41 lines
1004 B
JavaScript
41 lines
1004 B
JavaScript
import React from "react";
|
|
import { Text, View } from "react-native";
|
|
import { connect } from "react-redux";
|
|
import { createStructuredSelector } from "reselect";
|
|
import { setCameraJob, setCameraJobId } from "../../redux/app/app.actions";
|
|
import { selectCurrentCameraJobId } from "../../redux/app/app.selectors";
|
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
|
|
|
const mapStateToProps = createStructuredSelector({
|
|
bodyshop: selectBodyshop,
|
|
cameraJobId: selectCurrentCameraJobId,
|
|
});
|
|
|
|
const mapDispatchToProps = (dispatch) => ({
|
|
setCameraJobId: (id) => dispatch(setCameraJobId(id)),
|
|
setCameraJob: (job) => dispatch(setCameraJob(job)),
|
|
});
|
|
|
|
export function ScreenMediaBrowserTop({
|
|
bodyshop,
|
|
cameraJobId,
|
|
onFinish,
|
|
...props
|
|
}) {
|
|
console.log("Props", props);
|
|
return (
|
|
<View
|
|
style={{
|
|
marginHorizontal: 10,
|
|
}}
|
|
>
|
|
<Text>Test</Text>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(ScreenMediaBrowserTop);
|