\n {showText === 'average' &&
{`${props.totalScore.toFixed(2)} Average`}
}\n {showText === 'score' && (\n
\n {totalReviews === 1 ? '1 Review' : `${totalReviews} Reviews`}\n
\n )}\n
\n
\n);\n\nexport default ReviewStarsRow;\n","import * as React from 'react';\nimport cn from 'classnames';\nimport Image from 'styleguide/components/Image/Image';\nimport ReviewStarsRow from './ReviewStarsRow';\nimport { UiColor } from 'styleguide/styles/colors';\nimport A from 'styleguide/components/Links/A';\n\ninterface Props {\n companyLogo: string;\n totalScore: number;\n totalReviews: number;\n reviewsLink: string;\n companyName: string;\n starsColor?: UiColor;\n horizontal?: boolean;\n showText: 'average' | 'score' | 'none';\n className?: string;\n}\n\nconst Reviews = ({ showText = 'score', ...props }: Props) => (\n