Skip to content

Commit be7de8b

Browse files
committed
Fix YouTube types.
1 parent b0dd9ef commit be7de8b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/ui/YouTube.astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
---
2-
import { YouTube } from "@astro-community/astro-embed-youtube";
2+
import { YouTube as Player } from "@astro-community/astro-embed-youtube";
3+
4+
type Props = {
5+
id?: string;
6+
class?: string;
7+
[key: string]: any;
8+
}
39
410
const {
511
class: userClass = '',
@@ -10,4 +16,4 @@ const defaultClass = 'border-4 border-white rounded-lg shadow-lg';
1016
const className = `${defaultClass} ${userClass}`.trim();
1117
---
1218

13-
<YouTube class={className} {...attrs} />
19+
<Player:Props class={className} {...attrs} />

0 commit comments

Comments
 (0)