Sha256: d95a348c20311aa7d5be96bd4081627b3b4d5c57acba876aac1377c99eb0695e
Contents?: true
Size: 850 Bytes
Versions: 1065
Compression:
Stored size: 850 Bytes
Contents
import React, { useState } from 'react' import { RichTextEditor, Select } from '../../' import { changelog, release } from './templates.js' const RichTextEditorTemplates = (props) => { const [editorContent, setEditorContent] = useState('') const handleChange = (event) => { setEditorContent(event.target.value) } const options = [ { value: release, text: 'Playbook Release', }, { value: changelog, text: 'Changelog', }, ] return ( <div> <Select blankSelection="Select a template..." label="Template" onChange={handleChange} options={options} {...props} /> <RichTextEditor id="template" template={editorContent} {...props} /> </div> ) } export default RichTextEditorTemplates
Version data entries
1,065 entries across 1,065 versions & 2 rubygems