interface ResultSwitcherProps { currentIndex: number; totalCount: number; onPrevious: () => void; onNext: () => void; } const ResultSwitcher: React.FC = ({ currentIndex, totalCount, onPrevious, onNext, }) => { if (totalCount <= 1) { return null; } return (
{currentIndex + 1} / {totalCount}
); }; export default ResultSwitcher;