import { Box, Field, Flex, TextAreaInput, TextInput, Icon, Callout, Margins } from '@rocket.chat/fuselage'; import React from 'react'; import { ResetSettingButton } from '../ResetSettingButton'; export function Input({ hint, callout, ...props }) { return {hint && {hint}} {callout && {callout}} ; } export function StringSettingInput({ _id, label, disabled, multiline, placeholder, readonly, autocomplete, value, hasResetButton, onChangeValue, onResetButtonClick, addon, ...props }) { const handleChange = (event) => { onChangeValue(event.currentTarget.value); }; return <> {label} {hasResetButton && } {multiline ? }} { ...props } /> : }} { ...props } /> } ; } Input.displayName = 'Input';