mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 17:42:48 +00:00
UI done for video archiving
This commit is contained in:
16
client/app/components/embedded-youtube/embedded-youtube.tsx
Normal file
16
client/app/components/embedded-youtube/embedded-youtube.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user