import { MessageCircle } from 'lucide-react'

interface CopilotToggleProps {
  isOpen: boolean
  onToggle: () => void
}

export function CopilotToggle({ isOpen, onToggle }: CopilotToggleProps) {
  if (isOpen) return null

  return (
    <button
      onClick={onToggle}
      className="fixed bottom-6 right-6 z-40 bg-primary text-white p-3.5 rounded-full hover:brightness-110 active:scale-[0.98] transition-all"
      title="Open AI Copilot"
    >
      <MessageCircle size={22} />
    </button>
  )
}
