import React from 'react'; import { useScrollToTopButton } from '../hooks/useScrollToTopButton'; import { useTranslation } from '../js/i18n'; /** * A button that appears when the user scrolls down, allowing them to quickly * return to the top of the page with a smooth animation. */ const ScrollToTopButton = () => { const { showButton, scrollToTop } = useScrollToTopButton(); const { t } = useTranslation(); return ( ); }; export default ScrollToTopButton;