"use client"; import { Check, Copy } from "lucide-react"; import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogTitle, DialogTrigger, } from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { cn } from "@/lib/utils"; interface User { id: number; name: string; email: string; role: string; status: string; } interface CopyLinkCardProps { inviteLink: string; } const CopyLinkCard = ({ inviteLink }: CopyLinkCardProps) => { const [copied, setCopied] = useState(false); const handleCopy = () => { setCopied(true); navigator.clipboard.writeText(inviteLink); setTimeout(() => setCopied(false), 2000); }; return (

ارسال لینک

هر کسی با این لینک می‌تواند دسترسی داشته باشد

{inviteLink}

); }; const InviteForm = () => { return (
e.preventDefault()} className="flex flex-col gap-2.5 text-start" >
); }; interface UsersTableProps { users: User[]; } const UsersTable = ({ users }: UsersTableProps) => { return ( نام ایمیل نقش وضعیت {users.map((user) => ( {user.name} {user.email} {user.role} {user.status} ))}
); }; interface InviteUser4Props { heading?: string; inviteLink?: string; className?: string; } const InviteUser4 = ({ heading = "دعوت کاربر", inviteLink = "https://www.ShadcnBlocks", className, }: InviteUser4Props) => { const users: User[] = [ { id: 1, name: "سارا رضایی", email: "sarah.j@company.com", role: "مدیر", status: "فعال", }, { id: 2, name: "مایکل چن", email: "m.chen@company.com", role: "همکار", status: "دعوت‌شده", }, ]; return (

اعضای تیم

مدیریت و دعوت کاربران به تیم

{heading}
); }; export { InviteUser4 };