2020-10-16 12:38:04 +00:00
|
|
|
import React from "react";
|
2020-04-24 18:53:30 +00:00
|
|
|
import styled from "styled-components";
|
2020-04-30 07:35:02 +00:00
|
|
|
import PropTypes from "prop-types";
|
2020-04-24 18:53:30 +00:00
|
|
|
|
|
|
|
const StyledVideoControlBtn = styled.div`
|
2020-10-16 12:38:04 +00:00
|
|
|
display: inline-block;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 25px;
|
|
|
|
margin: 5px;
|
|
|
|
width: 40px;
|
|
|
|
border-radius: 2px;
|
|
|
|
cursor: pointer;
|
|
|
|
text-align: center;
|
2020-04-24 18:53:30 +00:00
|
|
|
|
2020-10-16 12:38:04 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: rgba(200, 200, 200, 0.2);
|
|
|
|
}
|
2020-04-24 18:53:30 +00:00
|
|
|
`;
|
2020-10-16 12:38:04 +00:00
|
|
|
const ControlBtn = (props) => {
|
|
|
|
return (
|
|
|
|
<StyledVideoControlBtn {...props}>{props.children}</StyledVideoControlBtn>
|
|
|
|
);
|
|
|
|
};
|
2020-04-24 18:53:30 +00:00
|
|
|
|
2020-04-30 07:35:02 +00:00
|
|
|
ControlBtn.propTypes = {
|
2020-10-16 12:38:04 +00:00
|
|
|
children: PropTypes.any,
|
|
|
|
};
|
2020-04-24 18:53:30 +00:00
|
|
|
|
2020-10-16 12:38:04 +00:00
|
|
|
export default ControlBtn;
|