blob: 2664c8e944f37e6f8bc1b66c82f57be1b9278817 [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001import React from 'react';
2import SelectInput from 'nfvo-components/input/SelectInput.jsx';
3
4const SelectActionTableCell = ({options, selected, disabled, onChange, clearable = true, placeholder}) => {
5 return (
6 <div className='select-action-table-cell'>
7 <SelectInput
8 placeholder={placeholder}
9 type='select'
10 value={selected}
11 data-test-id='select-action-table-dropdown'
12 disabled={disabled}
13 onChange={option => onChange(option ? option.value : null)}
14 clearable={clearable}
15 options={options} />
16 </div>
17 );
18};
19
20export default SelectActionTableCell;