"use client"; import { memo } from "react"; import Incrementer, { type IncrementerProps } from "./Incrementer"; import InputLabel from "../../utility/InputLabel"; import type { InputLabelPaletteValue, InputLabelSizeValue, } from "../../utility/InputLabel/InputLabel.types"; export interface IncrementerBlockProps extends IncrementerProps { /** Label text displayed above the incrementer. */ label: string; /** Show the help "?" icon next to the label. Defaults to `true`. */ helpIcon?: boolean; /** * Helper text shown to the right of the label. Pass a string or `true` to * render the default "Optional text". */ helperText?: boolean | string; /** Show an asterisk indicating a required field. */ asterisk?: boolean; /** * Size of the label (`"s"` or `"m"`). Defaults to `"s"` to match the Figma * "Incrementer Block" spec. */ labelSize?: InputLabelSizeValue; /** Palette. Defaults to `"default"`. */ palette?: InputLabelPaletteValue; /** * Class applied to the root `