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/audit/Tabs/ChannelTab.js

21 lines
619 B

import { Field } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../../../client/contexts/TranslationContext';
import RoomAutoComplete from '../RoomAutoComplete';
const ChannelTab = ({ errors, rid, handleRid }) => {
const t = useTranslation();
return (
<Field>
<Field.Label>{t('Channel_name')}</Field.Label>
<Field.Row>
<RoomAutoComplete error={errors.rid} value={rid} onChange={handleRid} placeholder={t('Channel_Name_Placeholder')} />
</Field.Row>
{errors.rid && <Field.Error>{errors.rid}</Field.Error>}
</Field>
);
};
export default ChannelTab;