generateRatingSimilyOne function

dynamic generateRatingSimilyOne(
  1. dynamic borderColor,
  2. dynamic fillColor,
  3. dynamic emojiBorder,
  4. dynamic opacity,
)

Implementation

generateRatingSimilyOne(borderColor,fillColor,emojiBorder,opacity){
  return '<svg width="16" height="16" viewBox="0 0 44 44"><g fill="none" stroke="${emojiBorder}" transform="translate(2 2)" opacity="${opacity}" stroke-width="2.5" ><circle cx="20.125" cy="20.125" r="20.125" fill="${fillColor}"/><path d="M7.778 16.112c.965-1.186 2.285-1.858 3.667-1.858 1.38 0 2.664.672 3.666 1.858m9.778 0c.966-1.186 2.285-1.858 3.667-1.858 1.38 0 2.664.672 3.666 1.858M11.744 30.776s3.21-3.207 8.556-3.207c5.348 0 8.555 3.207 8.555 3.207" stroke-width="3" stroke="${borderColor}" stroke-linecap="round" stroke-linejoin="round"/></g></svg>';
}