const typeList = { primary: { iconName: 'AttentionCircleOne', fill: 'var(--primary-color)', type: 'primary', }, warning: { iconName: 'Caution', fill: 'var(--orange-6)', type: 'warning' }, error: { iconName: 'AttentionCircleOne', fill: 'var(--red-6)', type: 'error', }, }; export const getIconName = (type: string) => { return typeList[type]; };