import React, { useState } from 'react'; import { Meteor } from 'meteor/meteor'; import { Random } from 'meteor/random'; import { TAPi18n } from 'meteor/rocketchat:tap-i18n'; import toastr from 'toastr'; import { useTranslation } from '../../providers/TranslationProvider'; import { Icon } from '../../basic/Icon'; import { useReactiveValue } from '../../../hooks/useReactiveValue'; import { Button } from '../../basic/Button'; import { handleError } from '../../../../app/utils/client'; export function StringSettingInput({ _id, multiline, value, placeholder, readonly, autocomplete, disabled, onChange, }) { const handleChange = (event) => { const { value } = event.currentTarget; onChange({ value }); }; if (multiline) { return