"use client"; import { useRef } from "react"; import { Button } from "@/components/ui/button"; import { SendHorizontal } from "lucide-react"; import { postData } from "@/actions/chat.actions"; function ChatInputOrder() { const formRef = useRef(null); return (
{ await postData(formData); formRef.current?.reset(); }} ref={formRef} className="w-full flex items-center h-14 border border-white/10 rounded-lg px-2 text-white" >
); } export { ChatInputOrder };