"use client" import { ColumnDef } from "@tanstack/react-table" import { Genre, Story } from "@prisma/client" import { ArrowUpDown, MoreHorizontal } from "lucide-react" import { Button } from "@/components/ui/button" export const columns: ColumnDef }>[] = [ // { // accessorKey: "id", // header: "Id", // enableHiding: true, // }, { accessorKey: "title", header: ({ column }) => { return ( ) }, }, { accessorKey: "word_count", header: ({ column }) => { return ( ) }, enableColumnFilter: false }, { accessorFn: row => { let unpacked = "" for (let i = 0; i < row.genres.length; i++) { unpacked = unpacked + " " + row.genres[i].name } return unpacked }, header: "Genres" }, // { // accessorKey: "deleted", // header: "Deleted" // }, ]