UNPKG

@masa-dev/react-signage

Version:

This is a react library for signage.

30 lines (29 loc) 861 B
"use strict"; // import { forwardRef, useRef } from "react"; // import { MediaRef } from "./items/types"; // import { Img } from "./items/Img"; // import { Video } from "./items/Video"; // interface Props { // } // export const Media = forwardRef<MediaRef, Props>(function Media(props, ref) { // const imgRef = useRef<HTMLImageElement>(null); // const videoRef = useRef<HTMLVideoElement>(null); // return <> // {/* <Img // ref={imgRef} // style={{ // ...ItemBaseStyle, // ...fadeInSpring, // }} // /> // <Video // ref={videoRef} // style={{ // ...ItemBaseStyle, // ...fadeInSpring, // }} // onEnded={advanceNext} // muted={mute} // /> */} // </> // });