import React, {useEffect, useRef} from "react"; import * as indentation from "indent-textarea"; import CharLimit from "../decorators/CharLimit"; import {Labelled} from "./shared"; export const Code = ({content, ...props}) => { const textInput = useRef(null); useEffect(() => { indentation.watch(textInput.current); }, [textInput]) return (