{"size": 793, "ext": "js", "max_stars_repo_path": "src/utils/initialState.js", "max_stars_repo_name": "vilmacio/react-weekday-navigator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/initialState.js", "max_issues_repo_name": "vilmacio/react-weekday-navigator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/initialState.js", "max_forks_repo_name": "vilmacio/react-weekday-navigator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.0416666667, "max_line_length": 62, "alphanum_fraction": 0.5145018916}
var moment = require('moment');

const initialState = () => {
    function getDay(n) {
        const weekDay = moment().add(n, 'days').format('dddd')
        return weekDay.slice(0, 3).toUpperCase()
    }

    function getDate(n) {
        return moment().add(n, 'days').date()
    }
    return [
        { id: '1', number: moment().date(), day: 'TODAY' },
        { id: '2', number: getDate(1), day: getDay(1) },
        { id: '3', number: getDate(2), day: getDay(2) },
        { id: '4', number: getDate(3), day: getDay(3) },
        { id: '5', number: getDate(4), day: getDay(4) },
        { id: '6', number: getDate(5), day: getDay(5) },
        { id: '7', number: getDate(6), day: getDay(6) },
        { id: '8', number: getDate(7), day: getDay(7) },
    ]
}

export default initialState;