import React, { FunctionComponent } from 'react'; import KeybindingInput from './KeybindingInput'; type Props = { setValue: (value: string[][]) => void; value: string[][]; }; export const PreferenceKeybinding: FunctionComponent = ({ setValue: setValueProp, value: valueProp, ...props }) => { const setValue = (index: number) => (value: string[]) => { const result = [...valueProp]; result[index] = value; setValueProp(result); }; return (
{' - '}
); };