import React from 'react';
import { PropTypes } from 'prop-types';
import { useIntl } from 'react-intl';
import NameInput from './NameInput';
import FormCard from '../../FormBloc';
import SizedInput from '../../SizedInput';
import ButtonWithNumber from '../ButtonWithNumber';
const RoleForm = ({ disabled, role, values, errors, onChange, onBlur, isLoading }) => {
const { formatMessage } = useIntl();
const actions = [
console.log('Open user modal')}
key="user-button"
>
{formatMessage({
id: 'Settings.roles.form.button.users-with-role',
defaultMessage: 'Users with this role',
})}
,
];
return (
);
};
RoleForm.defaultProps = {
disabled: false,
isLoading: false,
role: null,
values: { name: '', description: '' },
};
RoleForm.propTypes = {
disabled: PropTypes.bool,
errors: PropTypes.object.isRequired,
isLoading: PropTypes.bool,
onBlur: PropTypes.func.isRequired,
onChange: PropTypes.func.isRequired,
role: PropTypes.object,
values: PropTypes.object,
};
export default RoleForm;