"use client" import { Button } from "@/components/ui/button" import Link from "next/link" import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table" import { Badge } from "@/components/ui/badge" export interface Profile { id: string full_name: string role: string created_at: string } interface UsersTableProps { users: Profile[] } export function UsersTable({ users }: UsersTableProps) { return (

Kullanıcı Listesi

{/* */}
Ad Soyad Rol Kayıt Tarihi İşlemler {users?.map((profile) => ( {profile.full_name} {profile.role === 'admin' ? 'Yönetici' : 'Kullanıcı'} {new Date(profile.created_at).toLocaleDateString('tr-TR')} ))}
) }