Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mainComponent = type => {
if (type === 'documentation') {
return MainDocumentation
}
const componentName = upcaseFirstChar(type)
return () => import(
/* webpackPrefetch: true */
/* webpackChunkName: "[request]" */
`../components/Main${componentName}`
)
}
const mutations = Object.keys(properties).reduce((obj, property) => {
const upcased = upcaseFirstChar(property)
const setter = `set${upcased}`
obj[setter] = (state, value) => {
// set value in session storage
setSession(property, value)
state[property] = reactiveValue(value)
}
return obj
}, {})