Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

872 B
Raw Blame
"use client";

import { useExtracted } from "next-intl";
import Link from "next/link";
import { ApiPlayground } from "./components/ApiPlayground";

export default function ApiPlaygroundPage() {
  const t = useExtracted();
  return (
    <div className="p-4">
      <div className="mb-4">
        <h1 className="text-xl font-semibold text-neutral-900 dark:text-neutral-100">
          {t("API Playground")}
        </h1>
        <p className="text-sm text-neutral-500 dark:text-neutral-400 mt-1">
          {t("Test API endpoints and view code examples in multiple languages.")}{" "}
          <Link
            href="/settings/account"
            className="text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-300"
          >
            {t("Get your API key")}
          </Link>
        </p>
      </div>
      <ApiPlayground />
    </div>
  );
}