index.tsx 750 B

1234567891011121314151617181920212223242526272829
  1. import { AppShell } from "@pythnetwork/component-library/AppShell";
  2. import { NuqsAdapter } from "@pythnetwork/react-hooks/nuqs-adapters-next";
  3. import type { ReactNode } from "react";
  4. import {
  5. ENABLE_ACCESSIBILITY_REPORTING,
  6. GOOGLE_ANALYTICS_ID,
  7. AMPLITUDE_API_KEY,
  8. } from "../../config/server";
  9. type Props = {
  10. children: ReactNode;
  11. };
  12. export const Root = ({ children }: Props) => (
  13. <AppShell
  14. appName="Entropy Explorer"
  15. amplitudeApiKey={AMPLITUDE_API_KEY}
  16. googleAnalyticsId={GOOGLE_ANALYTICS_ID}
  17. enableAccessibilityReporting={ENABLE_ACCESSIBILITY_REPORTING}
  18. mainCta={{
  19. label: "Entropy Docs",
  20. href: "https://docs.pyth.network/entropy",
  21. }}
  22. providers={[NuqsAdapter]}
  23. >
  24. {children}
  25. </AppShell>
  26. );