1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-07-02 02:56:00 -04:00

trim some unnecessary dependencies

This commit is contained in:
2025-04-07 12:11:04 -04:00
parent 80793c7330
commit 53d6f57699
19 changed files with 256 additions and 300 deletions
+3 -1
View File
@@ -7,7 +7,7 @@ export type VideoProps = Omit<Partial<ComponentPropsWithoutRef<"video">>, "src">
src: string | string[] | undefined;
};
const Video = ({ src, autoPlay, className, ...rest }: VideoProps) => {
const Video = ({ src, autoPlay, className, children, ...rest }: VideoProps) => {
return (
<video
{...(typeof src === "string" ? { src } : {})}
@@ -37,6 +37,8 @@ const Video = ({ src, autoPlay, className, ...rest }: VideoProps) => {
return <source key={file} src={file} type={`video/${extension}`} />;
}
})}
{children}
</video>
);
};