import { Separator } from "@/components/ui/separator"; // import { db, schema } from "@/lib/db"; // import { ingestAuditLogs } from "@/lib/tinybird"; // import { auth } from "@clerk/nextjs"; // import { newId } from "@aigxion/id"; import { ArrowRight } from "lucide-react"; import { headers } from "next/headers"; import Link from "next/link"; import { notFound, redirect } from "next/navigation"; import { nanoid } from "nanoid"; import { auth } from '@/auth' import { Session } from '@/lib/types' import { getMissingKeys } from '../actions' import { Chat as ChatAI } from '@/components-ai/chat' import { AI } from '@/lib/chat/actions' import { ChatStaff } from "@/components/chat-staff"; type Props = { searchParams: { workspaceId?: string; apiId?: string; }; }; type PropsHeader = { title: React.ReactNode; description?: string; /** * A set of components displayed in the top right * null components are filtered out */ actions?: React.ReactNode[]; }; const PageHeader: React.FC = ({ title, description, actions }) => { const actionRows: React.ReactNode[][] = []; if (actions) { for (let i = 0; i < actions.length; i += 3) { actionRows.push(actions.slice(i, i + 3)); } } return (

{title}

{description}

{actionRows.map((row, i) => ( ))}
); }; export default async function (props: Props) { return redirect("/staffai/xxxxx"); const id = nanoid() const session = (await auth()) as Session const missingKeys = await getMissingKeys() return (
{/* */}
{/*
*/}
); }