HelpLogin
© 2022-2025 Spice AI, Inc.
SQL Query ReferenceDocsFAQSupport
PrivacyTerms
Status
Home
Datasets
Models
trunk
Edit on GitHub
Fork
/docs/website/src/theme/Root.tsx
1import React, { type PropsWithChildren } from "react";
2
3function ScarfPixel() {
4 if (process.env.NODE_ENV === 'development') {
5 return null;
6 }
7
8 return <img
9 referrerPolicy="no-referrer-when-downgrade"
10 src="https://static.scarf.sh/a.png?x-pxid=d13c8a61-d145-479a-92dc-6a231eddbb3e"
11 style={{
12 position: "absolute",
13 }}
14 />;
15}
16
17export default function Root({ children }: PropsWithChildren) {
18 return (
19 <>
20 {children}
21 <ScarfPixel />
22 </>
23 );
24}
25
1import React, { type PropsWithChildren } from "react";
2
3function ScarfPixel() {
4 if (process.env.NODE_ENV === 'development') {
5 return null;
6 }
7
8 return <img
9 referrerPolicy="no-referrer-when-downgrade"
10 src="https://static.scarf.sh/a.png?x-pxid=d13c8a61-d145-479a-92dc-6a231eddbb3e"
11 style={{
12 position: "absolute",
13 }}
14 />;
15}
16
17export default function Root({ children }: PropsWithChildren) {
18 return (
19 <>
20 {children}
21 <ScarfPixel />
22 </>
23 );
24}
25