import { YoutubeUrlRegex } from "@/Utils/Const"; export default function YoutubeEmbed({ link }: { link: string }) { const m = link.match(YoutubeUrlRegex); if (!m) return; return (