import { navigate } from 'gatsby' ; import React , { useEffect } from 'react' ; interface Props { children : React . ReactNode ; } const IndexPage = ( props ) : React . ReactElement => { const { children } = props ; useEffect ( ( ) => { navigate ( '/validators' ) ; } , [ ] ) ; return < div > { children } < /div>; } ; export default IndexPage ;