24 lines
574 B
JavaScript
24 lines
574 B
JavaScript
/**
|
|
* Copyright (c) Nicolas Gallagher.
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*
|
|
*/
|
|
import createElement from '../createElement';
|
|
export default function PickerItem(props) {
|
|
var color = props.color,
|
|
label = props.label,
|
|
testID = props.testID,
|
|
value = props.value;
|
|
var style = {
|
|
color: color
|
|
};
|
|
return createElement('option', {
|
|
style: style,
|
|
testID: testID,
|
|
value: value
|
|
}, label);
|
|
} |