I saw this example of using a Protected Route, but whe I tried to write it in typescript I got this error : Binding element \'Component\' implicitly has an \'any\' t