"use client" import { ColumnDef, createColumnHelper } from "@tanstack/react-table" import { StoryWithGenres } from "./page" import { ArrowUpDown } from "lucide-react" import { Button } from "@/components/ui/button" import GenreBadges from "app/ui/genreBadges" import { actions } from "app/ui/tables/actions" import { TextInputCell } from "app/ui/inputs/textInput" const columnHelper = createColumnHelper() export const columns: ColumnDef[] = [ { accessorKey: "title", header: ({ column }) => { return ( ) }, cell: TextInputCell }, { accessorKey: "word_count", header: ({ column }) => { return ( ) }, enableColumnFilter: false }, columnHelper.accessor("genres", { cell: props => { const genres = props.getValue() return }, filterFn: "arrIncludes" //TODO - write custom filter function, to account for an array of objects }), ]