export const getDatePrefix = ( year ? , month ? ) => { if ( year == null ) { return '' ; } if ( month == null ) { return `${ year }` ; } const monthStr = month < 10 ? `0${ month }` : `${ month }` ; return `${ year }-${ monthStr }` ; } ;