"use client"; import { Loading } from "@/components/dashboard/loading"; import { Badge } from "@/components/ui/badge"; // import { Button } from "@/components/ui/button"; // import { // Form, // FormControl, // FormDescription, // FormField, // FormItem, // FormLabel, // FormMessage, // } from "@/components/ui/form"; // import { Input } from "@/components/ui/input"; import { toast } from "@/components/ui/toaster"; // import { trpc } from "@/lib/trpc/client"; // import { useOrganizationList } from "@clerk/nextjs"; // import { zodResolver } from "@hookform/resolvers/zod"; import { Box } from "lucide-react"; import { useRouter } from "next/navigation"; // import { useForm } from "react-hook-form"; import { z } from "zod"; const formSchema = z.object({ name: z.string().min(3, "Name is required and should be at least 3 characters").max(50), }); import { Button, Form, Select, type FormItemProps, Input } from 'antd'; import { createContext, useContext, useMemo } from "react"; import { nanoid } from "nanoid"; import ChatPage from "../chatbot/page"; import { Chat } from '@/components-ai/chat' import { AI } from '@/lib/chat/actions' const MyFormItemContext = createContext<(string | number)[]>([]); interface MyFormItemGroupProps { prefix: string | number | (string | number)[]; children: React.ReactNode; } export const AsideContent: React.FC = () => { const onFinish = (value: object) => { console.log(value); }; return (
{/*
*/}

创建AI员工

{/*

A workspace groups all your resources and billing. You can have one personal workspace for free and create more workspaces with your teammates.

*/}
); } export const CreateWorkspace: React.FC = () => { // const form = useForm>({ // resolver: zodResolver(formSchema), // }); // const { setActive } = useOrganizationList(); // const router = useRouter(); // const createWorkspace = trpc.workspace.create.useMutation({ // onSuccess: async ({ workspace, organizationId }) => { // toast.success("Your workspace has been created"); // if (setActive) { // await setActive({ organization: organizationId }); // } // router.push(`/new?workspaceId=${workspace.id}`); // }, // onError(err) { // toast.error( // `An error occured while creating your workspace, please contact support: ${err.message}`, // {}, // ); // }, // }); const id = nanoid() // const id = nanoid() // const session = (await auth()) as Session // const missingKeys = await getMissingKeys() return (
{/*
createWorkspace.mutate({ ...values }))} className="flex flex-col space-y-4" > ( Name What should your workspace be called? )} />

250 Monthly active keys and 10,000 verifications included.

14 Day Trial
*/}
); };