@s20.ai/safecam-360-rn
Version:
A React Native component to view the interior panorama and exterior 360 degree views of a product featuring suppport for hotspots. Compatible with Android and iOS
20 lines (16 loc) • 473 B
JavaScript
/*
* Copyright © 2022 S20.AI India Pvt. Ltd.
* Contact - origin@s20.ai
* License - Licensed as per https://docs.s20.ai/license.html
*/
import types from "../actions/types";
const initialState = null;
const hotspotDetailReducer = (state = initialState, action) => {
switch (action.type) {
case types.HOTSPOT.SET_DETAIL_MODE:
return action.data;
default:
return state;
}
};
export default hotspotDetailReducer;