openreplay/frontend/app/components/Client/Integrations/SumoLogicForm/RegionDropdown.js
2021-05-01 15:12:01 +05:30

18 lines
433 B
JavaScript

import { regionLabels as labels } from 'Types/integrations/sumoLogicConfig';
import { Dropdown } from 'UI';
const options = Object.keys(labels).map(key => ({ text: labels[ key ], value: key }));
const RegionDropdown = props => (
<Dropdown
{ ...props }
onChange={(e, target) => props.onChange({target})}
selection
options={ options }
/>
);
RegionDropdown.displayName = "RegionDropdown";
export default RegionDropdown;