The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/ee/client/omnichannel/additionalForms/EeTextInput.js

18 lines
570 B

import React from 'react';
import { TextInput, Field } from '@rocket.chat/fuselage';
// import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import { useTranslation } from '../../../../client/contexts/TranslationContext';
export const EeTextInput = ({ value, handler, label, placeholder }) => {
const t = useTranslation();
return <Field mbe='x16'>
<Field.Label>{t(label)}</Field.Label>
<Field.Row>
<TextInput flexGrow={1} value={value} onChange={handler} placeholder={t(placeholder)} />
</Field.Row>
</Field>;
};
export default EeTextInput;