spee.ch/react/reducers/site.js

35 lines
554 B
JavaScript
Raw Normal View History

const siteConfig = require('../../config/siteConfig.js');
const {
analytics: {
googleId: googleAnalyticsId,
},
assetDefaults: {
thumbnail: defaultThumbnail,
description: defaultDescription,
},
details: {
description,
host,
title,
twitter,
},
} = siteConfig;
2018-02-06 03:14:12 +01:00
const initialState = {
description,
2018-03-15 19:02:23 +01:00
googleAnalyticsId,
host,
title,
twitter,
defaultDescription,
defaultThumbnail,
2018-02-06 03:14:12 +01:00
};
export default function (state = initialState, action) {
switch (action.type) {
default:
return state;
}
}