export default function InputField({ label, value, onChange, type = "number", suffix, min = 0, step = 1 }) {
return (
onChange(e.target.value)}
className="block w-full rounded-md border-slate-300 pl-3 pr-10 py-2 text-sm border focus:border-brand-500 focus:ring-brand-500"
min={min}
step={step}
/>
{suffix && (
{suffix}
)}
);
}