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