import React from 'react' import { useRouter } from 'next/router'; const GeneralHeader = () => { const router = useRouter(); function pushRouter(e) { let url = e.target.dataset.href; router.push(url); } return (
{ pushRouter("/") } }>

Tben.me

) } export default GeneralHeader