import React, {useEffect, useRef} from 'react'; import CharLimit from './decorators/CharLimit' import styled from 'styled-components' import FloatingLabel from './decorators/FloatingLabel' import Dropdown from 'react-dropdown'; import { LANGS, THEMES } from './renderers/Code'; import * as indentation from 'indent-textarea'; const RelPositioning = styled.div` position: relative; height: calc(100% - 4em); ` const FlexChild = styled.div` display: block; margin-left: 2em; ` const TitleInput = (props) => { return ( ); } const PasteInput = ({content, ...props}) => { const textInput = useRef(null); useEffect(() => { indentation.watch(textInput.current); }, [textInput]) return (