UNPKG

translation-audio-player

Version:

A personal audio player for React.js with a few modifications from original

19 lines (16 loc) 538 B
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; const GetMarkers = Audio => class GetMarkersComponent extends React.Component { static propTypes = { playlist: PropTypes.arrayOf(PropTypes.shape({ name: PropTypes.string, src: PropTypes.string, img: PropTypes.string, comments: PropTypes.arrayOf(PropTypes.shape({ time: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), content: PropTypes.string })) })).isRequired }; };