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) => (
|
|
|
|
|
// eslint-disable-next-line jsx-a11y/media-has-caption
|
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
|
|
|
)
|
|
|
|
|
);
|