mirror of
https://github.com/SkalaraAI/beta.git
synced 2025-04-09 15:00:20 -04:00
68 lines
1.9 KiB
XML
68 lines
1.9 KiB
XML
// "use client";
|
|
// import {
|
|
// Dialog,
|
|
// DialogContent,
|
|
// DialogDescription,
|
|
// DialogHeader,
|
|
// DialogTitle,
|
|
// DialogTrigger,
|
|
// } from "@/components/ui/dialog";
|
|
// import {
|
|
// Form,
|
|
// FormControl,
|
|
// FormDescription,
|
|
// FormField,
|
|
// FormItem,
|
|
// FormLabel,
|
|
// FormMessage,
|
|
// } from "@/components/ui/form";
|
|
// import { Button } from "@/components/ui/button";
|
|
// import { Input } from "@/components/ui/input";
|
|
// import { Label } from "@/components/ui/label";
|
|
|
|
// import * as z from "zod";
|
|
// import { useForm } from "react-hook-form";
|
|
// import { zodResolver } from "@hookform/resolvers/zod";
|
|
|
|
// const formSchema = z.object({
|
|
// description: z.string().min(2, {
|
|
// message: "Task description must be at least 2 characters.",
|
|
// }),
|
|
// });
|
|
|
|
// export default function GenerateTasks({ stack }: { stack: string[] }) {
|
|
// const form = useForm<z.infer<typeof formSchema>>({
|
|
// resolver: zodResolver(formSchema),
|
|
// defaultValues: {
|
|
// description: "",
|
|
// },
|
|
// });
|
|
|
|
// return (
|
|
// <div>
|
|
// <h1 className="font-bold">Generate Tasks</h1>
|
|
// <Form {...form}>
|
|
// <form onSubmit={form.handleSubmit(generateTasks)} className="space-y-8">
|
|
// <FormField
|
|
// control={form.control}
|
|
// name="description"
|
|
// render={({ field }) => (
|
|
// <FormItem>
|
|
// <FormLabel>Description</FormLabel>
|
|
// <FormControl>
|
|
// <Input placeholder="" {...field} />
|
|
// </FormControl>
|
|
// <FormDescription>
|
|
// This is your task description.
|
|
// </FormDescription>
|
|
// <FormMessage />
|
|
// </FormItem>
|
|
// )}
|
|
// />
|
|
// <Button type="submit">Submit</Button>
|
|
// </form>
|
|
// </Form>
|
|
// </div>
|
|
// );
|
|
// }
|