import * as React from "react"; import { ColumnDef } from "@tanstack/react-table"; import { Eye, MoreVertical, SquarePen, Trash2 } from "lucide-react"; import { cn } from "@/lib/utils"; import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger, DropdownMenuItem, } from "@/components/ui/dropdown-menu"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { format } from "date-fns"; import { Link } from "@/components/navigation"; const columns: ColumnDef[] = [ { accessorKey: "no", header: "No", cell: ({ row }) => (

{row.getValue("no")}

), }, { accessorKey: "hastagCode", header: "Kode", cell: ({ row }) => (

{row.getValue("hastagCode")}

), }, { accessorKey: "theme", header: "Judul", cell: ({ row }) => (

{row.getValue("theme")}

), }, { accessorKey: "duration", header: "Durasi ", cell: ({ row }) => ( {row.getValue("duration")} ), }, { accessorKey: "targetOutput", header: "Target Output ", cell: ({ row }) => ( {row.getValue("targetOutput")} ), }, { accessorKey: "targetParticipantTopLevel", header: "Tag ", cell: ({ row }) => ( {row.getValue("targetParticipantTopLevel")} ), }, { accessorKey: "isPublishForAll", header: "Status", cell: ({ row }) => { return ( {row.getValue("isPublishForAll")} ); }, }, { id: "actions", accessorKey: "action", header: "Actions", enableHiding: false, cell: ({ row }) => { return ( View {/* Edit Delete */} ); }, }, ]; export default columns;