import React from 'react' import type { ScriptProps } from 'next/script' import Script from 'next/script' import { YouTubeEmbed as TPCYouTubeEmbed } from 'third-party-capital' import ThirdPartyScriptEmbed from '../ThirdPartyScriptEmbed' import type { YouTubeEmbed as YouTubeEmbedTypes } from '../types/google' const scriptStrategy = { server: 'beforeInteractive', client: 'afterInteractive', idle: 'lazyOnload', worker: 'worker', } export default function YouTubeEmbed(props: YouTubeEmbedTypes) { const { html, scripts, stylesheets } = TPCYouTubeEmbed(props) return ( {scripts?.map((script) => (