---
import { resolveClassName, type InputClass } from '../../astro';
import type { YoutubeData } from './plugin.ts';
type Props = InputClass & YoutubeData['data']
const { className } = resolveClassName(Astro.props);
const { embed, image, title } = Astro.props;
const playButtonSvg = `
`;
const srcdoc = `
${image ? `
` : ""}
${
title
? ``
: ""
}
${playButtonSvg}
`;
const optional = {
...(title ? { title } : {}),
};
---
{
image ? (
// lazyloaded when there's an image
) : (
)
}