--- import Icon from './Icon.astro' interface Props { icon?: string iconBColor?: string variant?: string } const { icon = 'heart', iconBColor = 'red', variant } = Astro.props const resolvedIconB = icon ?? 'heart' // star/heart force the filled variant; otherwise no extra class. const resolvedIconBClass = icon === 'star' || icon === 'heart' ? 'icon-filled' : undefined const buttonClass = ['switch-icon', variant && `switch-icon-${variant}`] ---