"use client" import { ColumnDef, createColumnHelper } from "@tanstack/react-table" import { ArrowUpDown, BookType, Clock, Drama, SquareArrowOutUpRight } from "lucide-react" import { Button } from "@/components/ui/button" import { PubWithGenres } from "./page" import { TextInputCell } from "app/ui/tables/inputs/textInput" import { selectCol } from "app/ui/tables/selectColumn" import NumberInputCell from "app/ui/tables/inputs/numberInput" import { pubSchema } from "app/ui/forms/schemas" import GenrePickerInputCell from "app/ui/tables/inputs/genrePickerInput" import { genrePickerFilterFn } from "app/lib/filterFns" const columnHelper = createColumnHelper() export const columns: ColumnDef[] = [ selectCol, { accessorKey: "title", header: ({ column }) => { return ( ) }, cell: cell => ( <> {/* @ts-ignore */}

{cell.getValue()}

), meta: { formSchema: pubSchema } }, { accessorKey: "link", header: () => (
Link
), cell: cell => ( <> {/* @ts-ignore */}

{cell.getValue()}

), meta: { formSchema: pubSchema } }, columnHelper.accessor("genres", { header: () => (
Genres
), cell: GenrePickerInputCell, filterFn: genrePickerFilterFn }), { accessorKey: "query_after_days", header: () => (
Query After (days)
), enableColumnFilter: false, cell: cell => ( <> {/* @ts-ignore */}

{cell.getValue()}

), meta: { step: 10, formSchema: pubSchema }, }, ]