23 lines
729 B
TypeScript
23 lines
729 B
TypeScript
|
|
import type { Version } from "@/types/file";
|
||
|
|
import type { ColumnDef } from "@tanstack/react-table";
|
||
|
|
|
||
|
|
export const agentColumns: ColumnDef<Version>[] = [
|
||
|
|
{ accessorKey: "version", header: "Phiên bản" },
|
||
|
|
{ accessorKey: "fileName", header: "Tên file" },
|
||
|
|
{
|
||
|
|
accessorKey: "updatedAt",
|
||
|
|
header: "Thời gian cập nhật",
|
||
|
|
cell: ({ getValue }) =>
|
||
|
|
getValue()
|
||
|
|
? new Date(getValue() as string).toLocaleString("vi-VN")
|
||
|
|
: "N/A",
|
||
|
|
},
|
||
|
|
{
|
||
|
|
accessorKey: "requestUpdateAt",
|
||
|
|
header: "Thời gian yêu cầu cập nhật",
|
||
|
|
cell: ({ getValue }) =>
|
||
|
|
getValue()
|
||
|
|
? new Date(getValue() as string).toLocaleString("vi-VN")
|
||
|
|
: "N/A",
|
||
|
|
},
|
||
|
|
];
|