import React from 'react'; import styled from '@emotion/styled'; import Select from 'react-select'; import isHotkey from 'is-hotkey'; import { text, shadows, zIndex } from 'netlify-cms-ui-default'; import SettingsButton from './SettingsButton'; import languageSelectStyles from './languageSelectStyles'; const SettingsPaneContainer = styled.div` position: absolute; right: 0; width: 200px; z-index: ${zIndex.zIndex10}; height: 100%; background-color: #fff; overflow: hidden; overflow-y: scroll; padding: 12px; border-radius: 0 3px 3px 0; ${shadows.drop}; `; const SettingsFieldLabel = styled.label` ${text.fieldLabel}; font-size: 11px; display: block; margin-top: 8px; margin-bottom: 2px; `; const SettingsSectionTitle = styled.h3` font-size: 14px; margin-top: 14px; margin-bottom: 0; &:first-of-type { margin-top: 4px; } `; function SettingsSelect({ value, options, onChange, forID, type, autoFocus }) { return (