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