Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

522 B
Raw Blame
import CopyBtn from "@/components/ui/copy-button";
import { Input } from "@/components/ui/input";

export default function ApiKeySuccess({
  apiKey,
  message,
}: {
  apiKey: string;
  message: string;
}) {
  return (
    <div>
      <div className="py-4 text-sm text-muted-foreground">{message}</div>
      <div className="flex space-x-2 pt-2">
        <Input value={apiKey} readOnly />
        <CopyBtn
          getStringToCopy={() => {
            return apiKey;
          }}
        />
      </div>
    </div>
  );
}