import React from "react"; import { ChevronDown } from "lucide-react"; interface ScrollToBottomButtonProps { onClick: () => void; /** Label shown next to the icon. Defaults to "回到底部". */ label?: string; /** Tailwind classes appended to the default positioning. */ className?: string; } /** * Pill-shaped floating button shown when the user has scrolled up away from * the bottom of a streamed conversation. Click → smooth-scroll back to the * bottom and resume auto-follow. * * Positioning is `absolute` — render inside a `relative` wrapper so it * floats over the scroll container's lower-center without scrolling along * with content. */ export const ScrollToBottomButton: React.FC = ({ onClick, label = "回到底部", className = "", }) => ( );