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