import React, { Fragment } from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import Link from './link' import { InlineCode } from './code' import { markdownToReact } from './util' import classes from '../styles/embed.module.sass' const YouTube = ({ id, ratio }) => { const embedClassNames = classNames(classes.root, classes.responsive, { [classes.ratio16x9]: ratio === '16x9', [classes.ratio4x3]: ratio === '4x3', }) const url = `https://www.youtube.com/embed/${id}` return (