import {useRef} from 'react' import {Tabs, TabsProps, Card, Row, Col} from '@gravity-ui/uikit'; import Editor from '@monaco-editor/react'; import type {editor as EditorTypes} from 'monaco-editor'; export type InputAreaProps = { handleSelectTab: (active: string) => void; tabItems: TabsProps['items']; tabActive: string; handleInputChange: (input?: string) => void; input: string; } function InputArea(props: InputAreaProps) { const monacoRef = useRef(null); const {tabActive, tabItems, input, handleInputChange, handleSelectTab} = props; const editorOptions = {minimap: {enabled: false}, lineNumbers: "off" as const}; const lines = monacoRef?.current?.getModel()?.getLineCount() ?? 10; const height = `${lines * 16}px`; const handleOnMount = (editor) => { monacoRef.current = editor; } return ( ); } export {InputArea}; export default {InputArea};