--- import { GITHUB_URL } from '../data/site'; interface Props { targetId: string; label?: string; variant?: 'icon' | 'text'; class?: string; withAttribution?: boolean; nudge?: boolean; copyData?: Record | null; } const { targetId, label = 'Copy', variant = 'icon', class: extraClass = '', withAttribution = false, nudge = false, copyData = null } = Astro.props; const btnId = `copy-btn-${targetId}`; const nudgeId = `star-nudge-${btnId}`; --- {variant === 'icon' ? ( {nudge && ( )} ) : ( )}