32 lines
722 B
JavaScript
32 lines
722 B
JavaScript
import React from 'react';
|
|
import styled from 'styled-components';
|
|
import PropTypes from 'prop-types';
|
|
import { Base } from '@appserver/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;
|