import { useT } from '@/i18n/useT' import ActionButton from './ActionButton' /** ↑ / ↓ for a list row: one `move` per press; absent while read-only. */ export default function MoveButtons({ index, count, readOnly, onMove, }: { index: number count: number readOnly: boolean onMove: (position: number) => void }) { const t = useT() return ( <> onMove(index - 1)} > ↑ = count - 1} onClick={() => onMove(index + 1)} > ↓ ) }