Select or create a conversation
)}
"use client"; import { useEffect } from "react"; import { useChatStore } from "@/lib/store"; import { Sidebar } from "@/components/layout/Sidebar"; import { Header } from "@/components/layout/Header"; import { ChatWindow } from "./ChatWindow"; import { ChatInput } from "./ChatInput"; export function ChatLayout() { const { conversations, createConversation, activeConversationId } = useChatStore(); useEffect(() => { if (conversations.length === 0) { createConversation(); } }, []); return (