import { useEffect } from "react"; import Layout from "@/components/Layout"; import { useAuth } from "@/contexts/AuthContext"; import { useNavigate } from "react-router-dom"; import { Card, CardContent, CardHeader, CardTitle, CardDescription, } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { MessageSquare, Users, Hash, Lock, Plus } from "lucide-react"; const channels = [ { name: "announcements", description: "Company announcements and updates", type: "public", members: 45, }, { name: "engineering", description: "Engineering team discussions", type: "private", members: 12, }, { name: "product", description: "Product and feature discussions", type: "public", members: 28, }, { name: "design", description: "Design and UX team", type: "private", members: 8, }, { name: "random", description: "Off-topic and casual chat", type: "public", members: 42, }, ]; const directMessages = [ { name: "Sarah Johnson", role: "CEO", status: "online" }, { name: "Mike Chen", role: "CTO", status: "online" }, { name: "Emma Davis", role: "Product Lead", status: "away" }, { name: "Alex Kim", role: "Designer", status: "offline" }, ]; export default function StaffChat() { const { user, loading } = useAuth(); const navigate = useNavigate(); useEffect(() => { if (!loading && !user) { navigate("/staff/login"); } }, [user, loading, navigate]); if (loading) return (
Loading...
); return (

Team Chat

Internal collaboration and team discussions

{/* Sidebar */}
{/* Channels */}

Channels

{channels.map((channel) => ( ))}
{/* DMs */}

Direct Messages

{directMessages.map((dm) => ( ))}
{/* Main Chat Area */}
{/* Channel Info */}
announcements Company announcements and updates
45 members
{/* Messages Area */}

Sarah Johnson

Welcome to the internal team chat! This is where we collaborate and share updates.

10:30 AM

Mike Chen

Great! Looking forward to building amazing things together.

10:35 AM

{/* Info */} Team Chat Coming Soon

• Full-featured internal messaging platform

• Channels for teams and projects

• Direct messages and group chats

• File sharing and integrations

); }