import { FormLabel, Stack } from '@chakra-ui/react' import { DebouncedInput } from 'components/shared/DebouncedInput' import { SwitchWithLabel } from 'components/shared/SwitchWithLabel' import { TextInputOptions } from 'models' import React from 'react' type TextInputSettingsBodyProps = { options?: TextInputOptions onOptionsChange: (options: TextInputOptions) => void } export const TextInputSettingsBody = ({ options, onOptionsChange, }: TextInputSettingsBodyProps) => { const handlePlaceholderChange = (placeholder: string) => onOptionsChange({ ...options, labels: { ...options?.labels, placeholder } }) const handleButtonLabelChange = (button: string) => onOptionsChange({ ...options, labels: { ...options?.labels, button } }) const handleLongChange = (isLong: boolean) => onOptionsChange({ ...options, isLong }) return ( Placeholder: Button label: ) }