import React, { useState } from 'react' import { Container } from '@toptal/picasso' import { SPACING_4, SPACING_8 } from '@toptal/picasso-utils' import { LinkPlugin, RichTextEditor } from '@toptal/picasso-rich-text-editor' import type { RichTextEditorChangeHandler } from '../types' const Example = () => { const [value, setValue] = useState() const handleChange: RichTextEditorChangeHandler = newValue => setValue(newValue) return ( <> ]} /> {value} ) } export default Example