HEX
Server: LiteSpeed
System: Linux dviragis.serveriai.lt 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User: lyrlavhsb (1106)
PHP: 8.3.19
Disabled: link, symlink, exec, passthru, proc_close, proc_get_status, proc_open, shell_exec, system, popen, pclose, dl, show_source, highlight_file, pcntl_exec, ini_restore, ini_alter, chgrp
Upload Files
File: /home/lyrlavhsb/public_html/wp-content/plugins/extendify/src/Agent/components/ScrollDownButton.jsx
import { __ } from '@wordpress/i18n';
import { arrowDown, Icon } from '@wordpress/icons';
import { AnimatePresence, motion } from 'framer-motion';

export const ScrollDownButton = ({ canScrollDown, onClick }) => {
	return (
		<div className="pointer-events-none sticky bottom-1 flex h-8 items-center justify-center">
			<AnimatePresence>
				{canScrollDown ? (
					<motion.button
						key="scroll-down"
						initial={{ opacity: 0 }}
						animate={{ opacity: 1 }}
						exit={{ opacity: 0 }}
						transition={{ duration: 0.2, exit: { duration: 0 } }}
						onClick={onClick}
						type="button"
						className="pointer-events-auto flex h-fit items-center justify-center gap-2 whitespace-nowrap rounded-full border border-gray-500 bg-white/90 p-1 text-sm font-medium text-design-main shadow-lg transition-colors hover:bg-gray-100 focus-visible:ring-design-main disabled:pointer-events-none"
					>
						<Icon fill="currentColor" icon={arrowDown} size={20} />
						<span className="sr-only">
							{__('Scroll down', 'extendify-local')}
						</span>
					</motion.button>
				) : null}
			</AnimatePresence>
		</div>
	);
};