import coursesIn from '!../../loaders/coursesLoaderEntry!../../types' ; import { Courses , SelectedChapter , SelectedCourse , SelectedLesson } from './types' ; const courses = coursesIn ; export const selectCourse = ( selected ) => courses [ selected . course ] ; export const selectLesson = ( selected ) => courses [ selected . course ] . lessons [ selected . lesson ] ; export const selectChapter = ( selected ) => courses [ selected . course ] . lessons [ selected . lesson ] . chapters [ selected . chapter ] ; export { courses } ;