import moment from 'moment' ; import { getWeeksForDays } from '../get-weeks-for-days/get-weeks-for-days.util' ; import { getDaysForMonth } from '../get-days-for-month/get-days-for-month.util' ; param active return export function getMonth ( active ) { const date = active . clone ( ) ; const days = getDaysForMonth ( date ) ; const offset = date . startOf ( 'month' ) . isoWeekday ( ) ; return getWeeksForDays ( days , offset ) ; }