diff --git a/gui/src/components/NumberStepper.tsx b/gui/src/components/NumberStepper.tsx new file mode 100644 index 000000000..1b9f85528 --- /dev/null +++ b/gui/src/components/NumberStepper.tsx @@ -0,0 +1,43 @@ +import { IconChevron } from "../icons"; + +export interface NumberStepperProps { + disabled?: boolean; + /** Increase the bound value (parent owns parsing / clamping). */ + onIncrement(): void; + /** Decrease the bound value. */ + onDecrement(): void; + incrementLabel: string; + decrementLabel: string; +} + +/** Compact up/down chevron pair matching dashboard control chrome. */ +export function NumberStepper({ + disabled = false, + onIncrement, + onDecrement, + incrementLabel, + decrementLabel, +}: NumberStepperProps) { + return ( +
+ + {t("storage.workspace.selectBucket")} +
{t("storage.policy.help")}
{t("storage.policy.enabledHint")}
{status}
{error}
{t("storage.subtitle")}