export const icons = { oldMain : require ( './old-main.png' ) , windmill : require ( './windmill.png' ) , } ; export const defaultIcon = icons . oldMain ; export const iosToNamedIconsMap = { icon_type_windmill : 'windmill' , default : 'oldMain' , } ; export function lookup ( iosIconName ) { let iconName = iosToNamedIconsMap [ iosIconName ] ; if ( ! iconName ) { return defaultIcon ; } let icon = icons [ iconName ] ; if ( ! icon ) { return defaultIcon ; } return icon ; }