Requerd salah satu dari dua atribut di obj js ts

{ title: string, icon: string, component: number, click?: number} 
| { title: string, icon: string, click: number, component?: number}
Yousef Qawasmeh