(to = '/')
| 3 | |
| 4 | const createRedirect = |
| 5 | (to = '/'): ((_props: RouteComponentProps) => JSX.Element | null) => |
| 6 | () => { |
| 7 | if (typeof window !== 'undefined') { |
| 8 | void navigate(to); |
| 9 | } |
| 10 | return null; |
| 11 | }; |
| 12 | |
| 13 | export default createRedirect; |
no outgoing calls
no test coverage detected