@shopify/app-bridge-host
Version:
App Bridge Host contains middleware and components that are meant to be consumed by the app's host. The middleware and `Frame` component are responsible for facilitating messages posted between the client and host, and used to act on actions sent from the
16 lines (15 loc) • 573 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("./types");
function setUser(user) {
return { group: types_1.POS_GROUP, type: types_1.USER_UPDATE_TYPE, payload: user };
}
exports.setUser = setUser;
function setLocation(location) {
return { group: types_1.POS_GROUP, type: types_1.LOCATION_UPDATE_TYPE, payload: location };
}
exports.setLocation = setLocation;
function setDevice(device) {
return { group: types_1.POS_GROUP, type: types_1.DEVICE_UPDATE_TYPE, payload: device };
}
exports.setDevice = setDevice;