import React from 'react';
import { Select } from 'antd';
import { roles } from '../constants/teamConstants';

export const RoleSelect = ({ value, onChange, disabled }) => (
  <Select value={value} onChange={onChange} disabled={disabled}>
    {roles.map(({ label, value }) => (
      <Select.Option key={value} value={value}>
        {label}
      </Select.Option>
    ))}
  </Select>
);