"use client" import { ColumnDef, HeaderContext, CellContext } from "@tanstack/react-table" import { User } from "@/types/user" import { Badge } from "@/components/ui/badge" import { Check, X } from "lucide-react" import { Button } from "@/components/ui/button" import { ArrowUpDown } from "lucide-react" // Actions cell component will be added later or inline if simple import { DataTableRowActions } from "./user-row-actions" export const getColumns = (onRefresh: () => void): ColumnDef[] => [ { accessorKey: "id", header: ({ column }: HeaderContext) => { return ( ) }, }, { accessorKey: "username", header: ({ column }: HeaderContext) => { return ( ) }, }, { accessorKey: "email", header: ({ column }: HeaderContext) => { return ( ) }, }, { accessorKey: "email_verified", header: "Doğrulandı", cell: ({ row }: CellContext) => { return row.getValue("email_verified") ? ( Evet ) : ( Hayır ) }, }, { accessorKey: "deleted_at", header: "Durum", cell: ({ row }) => { const deletedAt = row.original.deleted_at return deletedAt ? ( Silindi ) : ( Aktif ) } }, { accessorKey: "is_admin", header: "Rol", cell: ({ row }: CellContext) => { return row.getValue("is_admin") ? ( Admin ) : ( User ) }, }, { id: "actions", cell: ({ row }: CellContext) => , }, ]