17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
import { NextComponentType } from "next";
|
|
import { ArrowBack } from '@material-ui/icons';
|
|
import { useRouter } from "next/router";
|
|
|
|
const GoBack: NextComponentType = () => {
|
|
|
|
const router = useRouter()
|
|
return (
|
|
<button className="text-left p-3 border-0 " onClick={() => {
|
|
router.push("/")
|
|
}} >
|
|
<ArrowBack className="text-secondary" />
|
|
</button>
|
|
)
|
|
}
|
|
|
|
export default GoBack; |