export const getLessonName = ( title , lesson ) => `Lesson ${ lesson + 1 }: ${ title }` ; export const getLessonTo = ( slug , lesson ) => `/course/${ slug }/${ lesson + 1 }` ; export const getChapterName = ( title , chapter ) => `Chapter ${ chapter + 1 }: ${ title }` ; export const getChapterTo = ( slug , lesson , chapter ) => `/course/${ slug }/${ lesson + 1 }/${ chapter + 1 }` ;