import React from "react";
import './Button.css'
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
/**
* A custom button component. It has a set color scheme and takes in height, eeight, and image
* as props. Netflix seems to use a standard button component with different widths.
*/
const button = props => {
let iconHolder = null;
const {
playButton, buttonSize, icon,
height, width, backgroundColor, textColor,
image, onButtonHover, hoverStatus
} = props
if (image) {
iconHolder = (
);
}
let orderButton = (
<>
{props.children}
{iconHolder}
>
)
if (playButton) {
orderButton = (
<>
{iconHolder}
{props.children}
>
)
}
const conditionalStyles = {
height: height,
width: width,
backgroundColor: backgroundColor,
color: textColor,
opacity: !hoverStatus && '80%'
};
return (
);
};
export default button;