import React from "react"; type AspectRatio = "16:9" | "4:3" | "21:9" | "1:1"; interface YouTubeEmbedProps { videoId: string; aspectRatio?: AspectRatio; title?: string; className?: string; } const YouTubeEmbed: React.FC = ({ videoId, aspectRatio = "16:9", title = "YouTube video", className = "", }) => { const aspectRatioClass = { "16:9": "aspect-video", "4:3": "aspect-4/3", "21:9": "aspect-21/9", "1:1": "aspect-square", }[aspectRatio]; return (
); }; export default YouTubeEmbed;