import { Box, Field, TextInput, Select, ToggleSwitch } from '@rocket.chat/fuselage';
import React, { useMemo } from 'react';
import { useTranslation } from '../../../contexts/TranslationContext';
const RoleForm = ({ values, handlers, className, editing = false, isProtected = false }) => {
const t = useTranslation();
const { name, description, scope, mandatory2fa } = values;
const { handleName, handleDescription, handleScope, handleMandatory2fa } = handlers;
const options = useMemo(
() => [
['Users', t('Global')],
['Subscriptions', t('Rooms')],
],
[t],
);
return (
<>
{t('Role')}
{t('Description')}
{'Leave the description field blank if you dont want to show the role'}
{t('Scope')}
{t('Users must use Two Factor Authentication')}
>
);
};
export default RoleForm;