mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
140cf65ead
- Logo component: "Logo" → "CopilotKit" (both light/dark variants) - Examples carousel: empty alt → example.title - Scarf tracking pixel: add aria-hidden so SR/audit tools skip it Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
25 lines
541 B
TypeScript
25 lines
541 B
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
|
|
export function ScarfPixel() {
|
|
const SCARF_PIXEL_ID = process.env.NEXT_PUBLIC_SCARF_PIXEL_ID;
|
|
if (!SCARF_PIXEL_ID) return null;
|
|
return (
|
|
<img
|
|
referrerPolicy="no-referrer-when-downgrade"
|
|
src={`https://static.scarf.sh/a.png?x-pxid=${SCARF_PIXEL_ID}`}
|
|
alt=""
|
|
aria-hidden="true"
|
|
style={{
|
|
position: "absolute",
|
|
width: "1px",
|
|
height: "1px",
|
|
opacity: 0,
|
|
pointerEvents: "none",
|
|
left: "-9999px",
|
|
}}
|
|
/>
|
|
);
|
|
}
|