Hi @Mazlum,
To double check: are you referring to a Canvas Component? If you are only using 1 button within that component, in my opinion you are better of just using different button controls in those screens. The main advantage of Canvas Components is building reusable components from multiple controls that are shared accross screens - think of a headers, footers, navigation bars, pop-ups... Instead of having to create all of this logic from scratch or copy-pasting, you can simply levarage Canvas Components (create once and reuse).
That being said, if you want to make your screen navigation dynamic: you will have to create a Custom Input property of type Screen (Click on the Component Tab, Click on your component and on the right side you should see 'Custom Properties'). The actual navigation logic will be built in the button in the component itself (OnSelect of the button: Navigate(ComponentName.CustomInputName ) ). When using the component in your app screen, you will now see an additional property with the name if your custom input property, simply add the required screen name there.
Links that will be of help are:
If this solves your question, would you be so kind as to accept it as a solution.
Thanks!