How make conditional binding parameters to a component

Hey there. I need know if it’s possible the next. I have two ways to access to a component, one is directly by link tag without any parameters loading the data in element but none selected, and another is through a button that bind the index of clicked item in datatable and redirect to the component binding this parameter that load in the item of received index.
So, if it possible, how can I write passing the parameters in directive @livewire(‘final-component’, [‘id’ => ?]) and in the ‘mount’ function of this component (public function mount($id?)) that allows me to render the component with or without binding parameter, if it is right because is the logic that I follow here but can be do it in way that work. I’m working with Livewire components only.
Can you take a minute for ideas? Thx in advance