[] {
return [
{
accessorKey: "uuid",
header: "UUID",
cell: ({ getValue }) => ({String(getValue())}
),
},
{
accessorKey: "buildNumber",
header: "Build Number",
},
{
accessorKey: "doorNumber",
header: "Door Number",
},
{
accessorKey: "floorNumber",
header: "Floor Number",
},
{
accessorKey: "commentAddress",
header: "Comment Address",
},
{
accessorKey: "letterAddress",
header: "Letter Address",
},
{
accessorKey: "shortLetterAddress",
header: "Short Letter Address",
},
{
accessorKey: "latitude",
header: "Latitude",
},
{
accessorKey: "longitude",
header: "Longitude",
},
{
accessorKey: "street",
header: "StreetId",
},
{
accessorKey: "createdAt",
header: "Created",
cell: ({ getValue }) => dateToLocaleString(getValue() as string),
},
{
accessorKey: "updatedAt",
header: "Updated",
cell: ({ getValue }) => dateToLocaleString(getValue() as string),
},
{
accessorKey: "expiryStarts",
header: "Expiry Starts",
cell: ({ getValue }) => getValue() ? dateToLocaleString(getValue() as string) : "-",
},
{
accessorKey: "expiryEnds",
header: "Expiry Ends",
cell: ({ getValue }) => getValue() ? dateToLocaleString(getValue() as string) : "-",
},
{
id: "actions",
header: "Actions",
cell: ({ row }) => {
return (
);
},
}
]
}
export { getColumns };