import * as Icons from 'iconsax-react' ; import { Icon } from 'iconsax-react' ; type iconType = keyof typeof Icons ; export interface IIconsArray { name : string ; Icon : Icon ; } const iconsArray = [ ] ; for ( const [ name , Icon ] of Object . entries ( Icons ) ) { iconsArray . push ( { name , Icon } ) ; } export default iconsArray ;