From 659f2c3e45fd63dc9a7deac2d7e458555dae0bdd Mon Sep 17 00:00:00 2001 From: Chocolate1999 <2816778271@qq.com> Date: Mon, 12 Sep 2022 17:44:29 +0800 Subject: [PATCH] fix: remove youtube compontents --- src/components/content/YoutubeEmbed.tsx | 45 ------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/components/content/YoutubeEmbed.tsx diff --git a/src/components/content/YoutubeEmbed.tsx b/src/components/content/YoutubeEmbed.tsx deleted file mode 100644 index 8ded1e8..0000000 --- a/src/components/content/YoutubeEmbed.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import clsx from 'clsx'; -import * as React from 'react'; -import LiteYoutubeEmbed from 'react-lite-youtube-embed'; - -type imgResolution = - | 'default' - | 'mqdefault' - | 'hqdefault' - | 'sddefault' - | 'maxresdefault'; - -type YoutubeEmbedProps = { - className?: string; - announce?: string; - id: string; - title: string; - activatedClass?: string; - adNetwork?: boolean; - aspectHeight?: number; - aspectWidth?: number; - iframeClass?: string; - noCookie?: boolean; - cookie?: boolean; - params?: string; - playerClass?: string; - playlist?: boolean; - playlistCoverId?: string; - poster?: imgResolution; - webp?: boolean; - wrapperClass?: string; - onIframeAdded?: () => void; - autoplay?: boolean; - muted?: boolean; -}; - -export default function YoutubeEmbed({ - className, - ...rest -}: YoutubeEmbedProps) { - return ( -
- -
- ); -}