import React from 'react' import { useEditor, EditorContent } from '@tiptap/react' import StarterKit from '@tiptap/starter-kit' import TextAlign from '@tiptap/extension-text-align' import Highlight from '@tiptap/extension-highlight' import './styles.scss' const MenuBar = ({ editor }) => { if (!editor) { return null } return ( <> ) } export default () => { const editor = useEditor({ extensions: [ StarterKit, TextAlign.configure({ types: ['heading', 'paragraph'], }), Highlight, ], content: `

Devs Just Want to Have Fun by Cyndi Lauper

I come home in the morning light
My mother says, “When you gonna live your life right?”
Oh mother dear we’re not the fortunate ones
And devs, they wanna have fun
Oh devs just want to have fun

The phone rings in the middle of the night
My father yells, "What you gonna do with your life?"
Oh daddy dear, you know you’re still number one
But girlsdevs, they wanna have fun
Oh devs just want to have

That’s all they really want
Some fun
When the working day is done
Oh devs, they wanna have fun
Oh devs just wanna have fun
(devs, they wanna, wanna have fun, devs wanna have)

`, }) return (
) }