update
This commit is contained in:
19
app/components/BackToTop.tsx
Normal file
19
app/components/BackToTop.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
"use client";
|
||||
import backTop from "@/app/assets/backtop.png";
|
||||
import Image from "next/image";
|
||||
// import { useScroll } from "ahooks";
|
||||
|
||||
const BackToTop = () => {
|
||||
// const position = useScroll();
|
||||
return (
|
||||
<div className={`fixed bottom-4 right-10 w-[50px] h-[50px]`}>
|
||||
<Image
|
||||
className={"w-full h-full cursor-pointer"}
|
||||
src={backTop}
|
||||
alt={""}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default BackToTop;
|
Reference in New Issue
Block a user