import { ChevronLeft, ChevronRight } from "lucide-react"; import { memo } from "react"; interface ImageNavigationButtonsProps { onPrev: () => void; onNext: () => void; currentIndex: number; totalImages: number; } export const ImageNavigationButtons = memo(function ImageNavigationButtons({ onPrev, onNext, currentIndex, totalImages, }: ImageNavigationButtonsProps) { const hasPrev = currentIndex > 0; const hasNext = currentIndex < totalImages - 1; return ( <> {/* 左侧按钮 */} {/* 右侧按钮 */} ); });