import React from 'react'; import { Box, FormField, NumberInput } from '@wix/design-system'; import type { StringLengthRange } from '../../../types/SchemaConfig'; import { classes } from './CharactersLimitInput.st.css.js'; export interface CharactersLimitInputProps { minLabel: string; maxLabel: string; value: StringLengthRange; onChange: (v: StringLengthRange) => void; } export const CharactersLimitInput = ({ minLabel, maxLabel, value, onChange, }: CharactersLimitInputProps) => ( onChange({ ...value, minLength: v ?? undefined })} min={0} /> onChange({ ...value, maxLength: v ?? undefined })} min={0} /> );