import React from "react"; import { ArrowDown } from "lucide-react"; import { motion } from "motion/react"; export default function DownButton({ onClick }) { function handleClick(e) { if (onClick) return onClick(e); // default behavior: scroll to bottom of page smoothly const doc = document.documentElement; const top = Math.max(doc.scrollHeight, document.body.scrollHeight); window.scrollTo({ top, behavior: "smooth" }); } return ( ); }