I need help about modal how can i fix it?

argument of type ‘{component: type of ModalPage; componentProps: {id: any:}; breakpoints: number; initialBreakpoints:number;}’

i got an error in breakpoints i already import the modalcontroller here is my code.

async openNote(note){
const modal = await this.modalCtrl.create({
component: ModalPage,
componentProps: {id: note.id},
breakpoints: [0, 0.5, 0.8], <------this is my error in my code
initialBreakpoints: 0.5

What documentation led you to putting those breakpoints and initialBreakpoints things there?

What is your error and are you sure you added Ionic 6 as this is part of the new Modal interface of Ionic 6?