import { IGetLanguagesResponse } from "../api/v1/LanguagesAPI" ; const LanguageUtils = { getDefaultLanguage : ( languagesResponse ) => { return languagesResponse ?. data ?. find ( ( language ) => { return language . attributes . is_default ; } ) ; } } ; export { LanguageUtils } ;