import React from 'react' import { ContentTree } from '@financial-times/content-tree' import { ContentProps } from '../../types' interface YoutubeVideoProps extends ContentProps {} const YoutubeVideo: React.FC = ({ content: { url } }) => { try { const parsed = new URL(url) const id = parsed.searchParams.get('v') if (!id) { return null } return (
) } catch { return null } } export default YoutubeVideo