import { useState } from "react" import { Edit, FolderOpen, Plus, Users } from "lucide-react" import { Button } from "../../components/ui/button" import { Card, CardContent } from "../../components/ui/card" import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from "../../components/ui/dialog" import { Input } from "../../components/ui/input" import { Textarea } from "../../components/ui/textarea" import { Badge } from "../../components/ui/badge" const mockGroups = [ { id: "1", name: "Big 10", userCount: 10 }, { id: "2", name: "Small 5", userCount: 5 }, { id: "3", name: "Team 8", userCount: 8 }, ] export function UserGroupsPage() { const [isModalOpen, setIsModalOpen] = useState(false) const [groupName, setGroupName] = useState("") const [groupDescription, setGroupDescription] = useState("") const handleAddGroup = () => { console.log("Add group:", { groupName, groupDescription }) setIsModalOpen(false) setGroupName("") setGroupDescription("") } return (

User Groups

Organize users into groups for easier management.

{mockGroups.length === 0 ? (

No groups found

Get started by creating your first user group to organize users and manage permissions more efficiently.

) : (
{mockGroups.map((group) => (

{group.name}

{group.userCount}

{group.userCount} {group.userCount === 1 ? "User" : "Users"} in this group

))}
)} Add New Group
setGroupName(e.target.value)} placeholder="Enter group name" />