--- import Icon from './Icon.astro' interface Props { icon?: string iconB?: string iconAColor?: string iconBColor?: string iconBClass?: string variant?: string active?: boolean } const { icon = 'heart', iconB, iconAColor = 'muted', iconBColor = 'red', iconBClass, variant, active } = Astro.props const resolvedIconB = iconB ?? icon ?? 'heart' // switch-icon.html: star/heart force the filled variant, otherwise the passed class const resolvedIconBClass = icon === 'star' || icon === 'heart' ? 'icon-filled' : iconBClass const buttonClass = ['switch-icon', variant && `switch-icon-${variant}`, active && 'active'] ---