--- import { iconSvg } from '@shared/lib/svg' import CaptureScript from '../components/CaptureScript.astro' import type { IconSize } from './Icon.astro' interface Props { id: string icon?: string color?: string size?: IconSize | undefined value?: number /** accessible name for the underlying select; defaults to "Rating" */ label?: string } const { id, icon = 'star', color, size, value, label = 'Rating' } = Astro.props const starClasses = ['icon', 'gl-star-full', color && `text-${color}`, size && `icon-${size}`].filter(Boolean).join(' ') const star = iconSvg(icon, { filled: true, classes: starClasses }) ?? '' const ratingSelector = `#rating-${id}` const ratingKey = `rating-${id}` ---