Files
cinny/src/app/components/media/Video.tsx
T

10 lines
354 B
TypeScript
Raw Normal View History

2023-10-06 13:44:06 +11:00
import React, { VideoHTMLAttributes, forwardRef } from 'react';
import classNames from 'classnames';
import * as css from './media.css';
export const Video = forwardRef<HTMLVideoElement, VideoHTMLAttributes<HTMLVideoElement>>(
({ className, ...props }, ref) => (
2023-10-18 13:15:30 +11:00
<video className={classNames(css.Video, className)} {...props} ref={ref} />
),
2023-10-06 13:44:06 +11:00
);