({ onClick }: { onClick: () => void })
| 214 | /* QR Button (for the top banner) */ |
| 215 | /* ------------------------------------------------------------------ */ |
| 216 | export function QrButton({ onClick }: { onClick: () => void }) { |
| 217 | return ( |
| 218 | <button |
| 219 | onClick={onClick} |
| 220 | className="inline-flex items-center gap-1.5 px-2.5 sm:px-3 py-1.5 sm:py-2 rounded-full text-xs sm:text-sm font-medium no-underline whitespace-nowrap transition-all duration-150 hover:-translate-y-px cursor-pointer" |
| 221 | style={{ |
| 222 | color: "var(--text-secondary)", |
| 223 | border: "1px solid var(--color-border-glass, rgba(0,0,0,0.1))", |
| 224 | background: "var(--surface-primary, rgba(255,255,255,0.6))", |
| 225 | fontFamily: "var(--font-family)", |
| 226 | }} |
| 227 | title="QR Code — Audience Pick" |
| 228 | > |
| 229 | <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round"> |
| 230 | <rect x="3" y="3" width="7" height="7" rx="1" /> |
| 231 | <rect x="14" y="3" width="7" height="7" rx="1" /> |
| 232 | <rect x="3" y="14" width="7" height="7" rx="1" /> |
| 233 | <rect x="14" y="14" width="3" height="3" /> |
| 234 | <path d="M21 14h-3v3" /> |
| 235 | <path d="M18 21h3v-3" /> |
| 236 | </svg> |
| 237 | <span className="hidden sm:inline">QR Pick</span> |
| 238 | </button> |
| 239 | ); |
| 240 | } |
nothing calls this directly
no outgoing calls
no test coverage detected