I\'m implementing a PrivateRoute.tsx component, where it takes a component as a prop and conditionally renders that component if the user is logged in. However,
PrivateRoute.tsx