mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 01:22:48 +00:00
17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import React from 'react';
|
|
import './embedded-youtube.scss';
|
|
|
|
interface IProps {
|
|
id: string;
|
|
className?: string;
|
|
}
|
|
|
|
export const EmbeddedYoutube = ({ id, className }: IProps) => {
|
|
const src = `https://www.youtube.com/embed/${id}`;
|
|
return (
|
|
<div className={`embedded-youtube ${className}`}>
|
|
<iframe src={src} className="embedded-youtube__iframe" allowFullScreen />
|
|
</div>
|
|
);
|
|
};
|