"use client"; import { Pencil, Podcast } from "lucide-react"; import { useContext } from "react"; import { cn } from "@/lib/utils"; import { chatInterfaceContext } from "../ChatInterface"; import { ConfigModal } from "./ConfigModal"; interface ChatPanelViewProps { chat_id: string; } export function ChatPanelView({ chat_id: chatId }: ChatPanelViewProps) { const context = useContext(chatInterfaceContext); if (!context) { throw new Error("chatInterfaceContext must be used within a ChatProvider"); } const { isChatPannelOpen, setIsChatPannelOpen } = context; return (
Generate Podcast