This is my attempt:
function ChangeStrokeToTextAndImage(properties: ChangeStrokeToTextAndImageProps) {
return (
<div
className={
styles.container0 + " " + properties.isLightGreenBackground == true
? styles.isLightGreenBackground
: " "
}
>
If the condition applies, I want to apply styles.container0
, and if
properties.isLightGreenBackground
is true, then also apply styles.isLightGreenBackground
.
The syntax seems correct, but for some reason the style is not being applied. Any idea why?