T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/lavocat.ca/private_html/src/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.ca/private_html/src/components/CaseChatWidget.tsx
'use client';

import React, { useState } from 'react';
import { MessageSquare, X } from 'lucide-react';
// UI components replaced with standard HTML elements and Tailwind CSS
import CaseChat from './CaseChat';

interface CaseChatWidgetProps {
  caseId: string;
  caseTitle?: string;
  className?: string;
}

const CaseChatWidget: React.FC<CaseChatWidgetProps> = ({ 
  caseId, 
  caseTitle = 'Case Chat',
  className = '' 
}) => {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <div className={className}>
      {!isOpen ? (
        <div className="bg-white rounded-lg shadow-sm border">
          <div className="p-6 border-b border-gray-200">
            <h3 className="text-lg font-semibold flex items-center gap-2">
              <MessageSquare className="h-5 w-5" />
              Team Collaboration
            </h3>
          </div>
          <div className="p-6">
            <p className="text-gray-600 mb-4">
              Chat with your case team members, share files, and collaborate in real-time.
            </p>
            <button 
              onClick={() => setIsOpen(true)}
              className="w-full inline-flex items-center justify-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors"
            >
              <MessageSquare className="h-4 w-4 mr-2" />
              Open Case Chat
            </button>
          </div>
        </div>
      ) : (
        <div className="relative">
          <div className="absolute top-2 right-2 z-10">
            <button
              className="inline-flex items-center justify-center h-8 w-8 p-0 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors"
              onClick={() => setIsOpen(false)}
            >
              <X className="h-4 w-4" />
            </button>
          </div>
          <CaseChat 
            caseId={caseId} 
            caseTitle={caseTitle}
            onClose={() => setIsOpen(false)}
          />
        </div>
      )}
    </div>
  );
};

export default CaseChatWidget; 

CasperSecurity Mini