Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import ChordSheetJS from 'chordsheetjs';
import PropTypes from 'prop-types';
import '../css/ChordSheetTextViewer.css';
const ChordSheetTextViewer = (props) => {
const { song } = props;
const textChordSheet = new ChordSheetJS.TextFormatter().format(song);
return <textarea value="{textChordSheet}" readonly="">;
};
ChordSheetTextViewer.propTypes = {
song: PropTypes.instanceOf(ChordSheetJS.Song).isRequired,
};
export default ChordSheetTextViewer;
</textarea>
import ChordSheetJS from 'chordsheetjs';
import PropTypes from 'prop-types';
import '../css/ChordSheetHTMLViewer.css';
const ChordSheetHTMLViewer = (props) => {
const { song } = props;
const htmlChordSheet = new ChordSheetJS.HtmlTableFormatter().format(song);
return (
<div>
);
};
ChordSheetHTMLViewer.propTypes = {
song: PropTypes.instanceOf(ChordSheetJS.Song).isRequired,
};
export default ChordSheetHTMLViewer;
</div>