spee.ch/react/reducers/site.js
2018-03-15 11:02:23 -07:00

23 lines
435 B
JavaScript

const siteConfig = require('../../config/siteConfig.js');
const {
analytics: { googleId: googleAnalyticsId },
assetDefaults: { thumbnail: defaultThumbnail },
details: { title, host },
} = siteConfig;
const initialState = {
googleAnalyticsId,
host,
title,
defaults: {
defaultThumbnail,
},
};
export default function (state = initialState, action) {
switch (action.type) {
default:
return state;
}
}