UNPKG

react-ats-scripts

Version:

Configuration and scripts for Create React App with Storybook, TypeScript, Babel and Sass.

13 lines (12 loc) 321 B
import * as moment from 'moment'; import { Action } from 'redux'; import { GET_TIME } from './today.actions'; export default (state: moment.Moment = moment(), action: Action) => { switch (action.type) { case GET_TIME: { return moment(Date.now()); } default: return state; } };