quivr/frontend/app/config/page.tsx
Matt 33f49ee289
feat: user can create api keys (#329)
* 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
2023-06-14 21:21:13 +02:00

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>
);
}