import { Box, Field, Flex, TextAreaInput, TextInput, 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,
}) {
const handleChange = (event) => {
onChangeValue(event.currentTarget.value);
};
return <>
{label}
{hasResetButton && }
{multiline
?
: }
>;
}
Input.displayName = 'Input';