35 lines
737 B
JavaScript
35 lines
737 B
JavaScript
|
import React from "react";
|
||
|
import styled from "styled-components";
|
||
|
import PropTypes from "prop-types";
|
||
|
import { Base } from "@docspace/components/themes";
|
||
|
|
||
|
const StyledVideoControlBtn = styled.div`
|
||
|
display: inline-block;
|
||
|
height: 30px;
|
||
|
line-height: 25px;
|
||
|
margin: 5px;
|
||
|
width: 40px;
|
||
|
border-radius: 2px;
|
||
|
cursor: pointer;
|
||
|
text-align: center;
|
||
|
|
||
|
&:hover {
|
||
|
background-color: ${(props) =>
|
||
|
props.theme.mediaViewer.controlBtn.backgroundColor};
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
StyledVideoControlBtn.defaultProps = { theme: Base };
|
||
|
|
||
|
const ControlBtn = (props) => {
|
||
|
return (
|
||
|
<StyledVideoControlBtn {...props}>{props.children}</StyledVideoControlBtn>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
ControlBtn.propTypes = {
|
||
|
children: PropTypes.any,
|
||
|
};
|
||
|
|
||
|
export default ControlBtn;
|