@rocketsofawesome/mirage
Version:
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
18 lines (14 loc) • 380 B
JavaScript
import React from 'react'
import PropTypes from 'prop-types'
import { Video } from 'SRC'
const ContentfulVideo = ({ className, fields: { description, file: {url} }, ...props }) => {
return (
<Video {...props} sources={url} />
)
}
ContentfulVideo.propTypes = {
fields: PropTypes.object,
className: PropTypes.string
}
/** @component */
export default ContentfulVideo