/** * WordPress dependencies */ import { __, sprintf } from '@wordpress/i18n'; import { useId } from '@wordpress/element'; type Props = { label: string; value: number; min: number; max: number; onChange: ( value: number ) => void; }; const Stepper = ( { label, value, min, max, onChange }: Props ) => { const id = useId(); const isMin = value <= min; const isMax = value >= max; const displayValue = `${ min < 0 && value > 0 ? '+' : '' }${ value }`; return (