import { ApplicationConfigurations , ApplicationTypes , } from '../types/ApplicationTypes' ; export const getTypeFromSlug = ( slug ? ) => { for ( const [ key , value ] of Object . entries ( ApplicationConfigurations ) ) { if ( value . slug === slug ) { return key as ApplicationTypes ; } } return undefined ; } ; export const getSlugFromType = ( type ) => { for ( const [ key , value ] of Object . entries ( ApplicationConfigurations ) ) { if ( type === key ) { return value . slug ; } } return undefined ; } ;