import { useRouter } from "next/router" ; import { useEffect } from "react" ; import { useDisplayLogic } from "./util" ; /**
 * Empty page that just redirects to /profile.
 */ const EditProfile = ( ) => { const router = useRouter ( ) ; const { dialogPath , dialogAsPath } = useDisplayLogic ( ) ; useEffect ( ( ) => { router . replace ( dialogPath , dialogAsPath ) ; } , [ ] ) ; return < div > & nbsp ; < /div>; } ; export default EditProfile ;