I have a modal component like below
<modal>
<component
:is="modalComponent"
/>
</modal>
And I need to pass different props to the dynamic component.
Component A needs a a title, and array of names Component B needs a a title, array of events and a date as a string.
What is the best way to pass different props to the dynamic component? I don't really want to pass all props to the dynamic components.
<modal>
<component
:is="modalComponent"
:title='title'
:names='names'
:events='events'
:eventDate='eventDate'
/>
</modal>