Path: blob/master/src/packages/frontend/account/editor-settings/keyboard-bindings.tsx
1503 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { useIntl } from "react-intl";67import { LabeledRow, SelectorInput } from "@cocalc/frontend/components";8import { EDITOR_BINDINGS } from "@cocalc/util/db-schema/accounts";910interface Props {11bindings: string;12on_change: (selected: string) => void;13}1415export function EditorSettingsKeyboardBindings(props: Props): React.JSX.Element {16const intl = useIntl();1718const label = intl.formatMessage({19id: "account.editor-settings.keyboard-bindings.label",20defaultMessage: "Editor keyboard bindings",21});2223return (24<LabeledRow label={label}>25<SelectorInput26options={EDITOR_BINDINGS}27selected={props.bindings}28on_change={props.on_change}29/>30</LabeledRow>31);32}333435