I'm trying to add some style to two buttons, Up and Down, by using emotion CSS but I'm having trouble. Currently, I typically style my elements within a function. Is there a way for me to accomplish this with emotion CSS? I checked out but still can't seem to get it right.
import up from "../img/up.png";
function CustomButton(props) {
let styling = {
background: `url(${up})`,
paddingRight: 24,
paddingTop: 26,
paddingLeft: 26,
paddingBottom: 26.6
};
return (
<button style={styling} onClick={() => props.handleClick()}>{props.background}</button>
);
}
//A similar code structure is written for CustomButton2
function Post(props) {
return (
<div>
<Up >
<CustomButton src={"../images/up.png"} handleClick= .
{props.incrementScore} />
</Up>
<Down >
<CustomButton2 src={"../images/down.png"}
handleClick{props.decrementScore} />
</Down>
</Col>
</Row>
</Container>
</div>
);
}