import React, { useRef, useCallback } from 'react'; interface ArrowProps extends React.HTMLAttributes {} export default function Arrow(props: ArrowProps) { const { style, ...other } = props; const btn = useRef(null); const handleMouseEnter = useCallback(() => { btn.current!.style['backgroundColor'] = 'var(--chrome-arrow-background-color)'; }, []); const handleMouseLeave = useCallback(() => { btn.current!.style['backgroundColor'] = 'transparent'; }, []); return (
); }