--- import { Schema } from 'astro-seo-schema' import { cn } from '../lib/cn' import { makeOverallScoreInfo } from '../lib/overallScore' import { KYCNOTME_SCHEMA_MINI } from '../lib/schema' import { transformCase } from '../lib/strings' import type { HTMLTag, Polymorphic } from 'astro/types' type Props = Polymorphic<{ as: HTMLTag score: number label: string total?: number itemReviewedId?: string showInfo?: boolean children?: never }> const { as: Tag = 'div', score, label, total = 10, class: className, itemReviewedId, showInfo = false, ...htmlProps } = Astro.props const { text, classNameBg, formattedScore } = makeOverallScoreInfo(score, total) --- { !!itemReviewedId && ( ) } { showInfo && ( ) }
2, } )} > {formattedScore}
{label}
{text}