spee.ch/react/reducers/site.js

24 lines
435 B
JavaScript
Raw Normal View History

const siteConfig = require('../../config/siteConfig.js');
const {
2018-03-15 11:02:23 -07:00
analytics: { googleId: googleAnalyticsId },
assetDefaults: { thumbnail: defaultThumbnail },
2018-03-15 11:02:23 -07:00
details: { title, host },
} = siteConfig;
2018-02-05 18:14:12 -08:00
const initialState = {
2018-03-15 11:02:23 -07:00
googleAnalyticsId,
host,
title,
defaults: {
defaultThumbnail,
},
2018-02-05 18:14:12 -08:00
};
export default function (state = initialState, action) {
switch (action.type) {
default:
return state;
}
}