"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 { chatId: string; } export default function ChatPanelView({ chatId }: ChatPanelViewProps) { const context = useContext(chatInterfaceContext); if (!context) { throw new Error("chatInterfaceContext must be used within a ChatProvider"); } const { isChatPannelOpen, setIsChatPannelOpen } = context; return (
{isChatPannelOpen ? (

Generate Podcast

) : ( )}
); }