({ params }: ChallengesRedirectProps)
| 13 | } |
| 14 | |
| 15 | const ChallengesRedirect = ({ params }: ChallengesRedirectProps) => { |
| 16 | useEffect(() => { |
| 17 | const pathSegments = params['*'].split('/').filter(Boolean); |
| 18 | const [superBlock, block, challenge] = pathSegments; |
| 19 | |
| 20 | void navigate(toLearnPath({ superBlock, block, challenge })); |
| 21 | }, [params]); |
| 22 | |
| 23 | return null; |
| 24 | }; |
| 25 | |
| 26 | export default ChallengesRedirect; |
nothing calls this directly
no test coverage detected