mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-17 11:21:35 +03:00
33f49ee289
* feat: user can create api keys * fix: linting on build * Update backend/routes/api_key_routes.py * chore: rename and refactor AuthBearer * chore: add types
26 lines
696 B
TypeScript
26 lines
696 B
TypeScript
"use client";
|
|
import { redirect } from "next/navigation";
|
|
|
|
import { useSupabase } from "../supabase-provider";
|
|
import { ConfigForm, ConfigTitle } from "./components";
|
|
import { ApiKeyConfig } from "./components/ApiKeyConfig";
|
|
|
|
// TODO: Use states instead of NEXTJS router to open and close modal
|
|
export default function ConfigPage() {
|
|
const { session } = useSupabase();
|
|
|
|
if (session === null) {
|
|
redirect("/login");
|
|
}
|
|
|
|
return (
|
|
<main className="w-full flex flex-col">
|
|
<section className="w-full outline-none pt-10 flex flex-col gap-5 items-center justify-center p-6">
|
|
<ConfigTitle />
|
|
<ConfigForm />
|
|
<ApiKeyConfig />
|
|
</section>
|
|
</main>
|
|
);
|
|
}
|