import { FileConvertStep } from "../../../../model/cloudStorage/Constants" ; export const determineType = ( resource ) : "static" | "dynamic" => { return resource . endsWith ( ".pptx" ) ? "dynamic" : "static" ; } ; export const isCourseware = ( resource ) : boolean => { return resource . endsWith ( ".ice" ) ; } ; export const isConverting = ( convertStep ) : boolean => { return convertStep === FileConvertStep . Converting ; } ; export const isConvertDone = ( convertStep ) : boolean => { return convertStep === FileConvertStep . Done ; } ; export const isConvertFailed = ( convertStep ) : boolean => { return convertStep === FileConvertStep . Failed ; } ;