import { selectChapter } from '../coursesData' ; import { SelectedChapter } from '../types' ; export const enablePreview = ( selected ) => selectChapter ( selected ) . files . some ( ( file ) => file . path === 'public/index.html' ) ;