import React, { useContext, useState } from 'react'; import { ZOOM, RULER_HEIGHT, SIDEBAR_WIDTH } from '../../../../constants'; import { I18nContext } from '../../../../contexts'; import Divider from '../../../Divider'; import SelectableSortableContainer from './SelectableSortableContainer'; import { SidebarProps } from '..'; const ListView = ( props: Pick< SidebarProps, | 'schemas' | 'onSortEnd' | 'onEdit' | 'size' | 'hoveringSchemaId' | 'onChangeHoveringSchemaId' | 'changeSchemas' > ) => { const { schemas, onSortEnd, onEdit, size, hoveringSchemaId, onChangeHoveringSchemaId, changeSchemas, } = props; const i18n = useContext(I18nContext); const [isBulkUpdateFieldNamesMode, setIsBulkUpdateFieldNamesMode] = useState(false); const [fieldNamesValue, setFieldNamesValue] = useState(''); const height = size.height - RULER_HEIGHT - RULER_HEIGHT / 2 - 145; return (