React Router V6 Prop Issue

I am using react router v6 and I am not sure what prop I need to execute my comment. I could use some assistance.

<Route path="/" element={}
//if user is logged go to home if not go to register
prop?={user ? : }
/>