mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-09-20 16:55:32 -04:00
15 lines
389 B
TypeScript
15 lines
389 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
|
|
}: Omit<React.ComponentProps<typeof YouTubeEmbed>, "title"> & {
|
|
title?: string;
|
|
}) => <YouTubeEmbed cookie={false} containerElement="div" title={title} {...rest} />;
|
|
|
|
export { YouTube };
|