File size: 576 Bytes
9b906ea | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import ArrowSendIcon from "#/icons/arrow-send.svg?react";
interface ScrollToBottomButtonProps {
onClick: () => void;
}
export function ScrollToBottomButton({ onClick }: ScrollToBottomButtonProps) {
return (
<button
type="button"
onClick={onClick}
data-testid="scroll-to-bottom"
className="flex items-center justify-center size-8 rounded-full bg-[var(--oh-surface)] text-[var(--oh-muted)] hover:bg-tertiary hover:text-white rotate-180 cursor-pointer transition-colors"
>
<ArrowSendIcon width={15} height={15} />
</button>
);
}
|