mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-19 12:15:27 -04:00
15 lines
356 B
TypeScript
15 lines
356 B
TypeScript
"use client";
|
|
|
|
import YouTubeEmbed from "react-lite-youtube-embed";
|
|
|
|
// lite-youtube-embed CSS is imported in app/global.css to save a request
|
|
|
|
const YouTube = ({
|
|
title = "YouTube video",
|
|
...rest
|
|
}: React.ComponentProps<typeof YouTubeEmbed>) => (
|
|
<YouTubeEmbed cookie={false} containerElement="div" title={title} {...rest} />
|
|
);
|
|
|
|
export { YouTube };
|