'use client'
import { Bot, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Drawer, DrawerContent, DrawerTitle } from '@/components/ui/Drawer'
import { useIsMobile } from '@/hooks/use-mobile'
import { CampaignAIChat } from '@/components/campaign/shell/ai/CampaignAIChat'
import { useAISidebar } from '@/components/campaign/shell/ai/CampaignAISidebarContext'
export const CampaignAISidebar = () => {
const ctx = useAISidebar()
const isMobile = useIsMobile()
if (!ctx) return null
const { open, setOpen, setOpenMobile } = ctx
// Mobile: full-screen Drawer (Panel is hidden on mobile via className)
if (isMobile) {
return (