Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 38x 60x 60x 60x | import type { Column } from '@/shared/components/DataTable'
import type { components } from '@/types/api'
type Project = components['schemas']['Project']
export function useProjectColumns(): Column<Project>[] {
return [
{
key: 'name',
label: 'Name',
sortable: true,
render: (item) => item.name,
},
{
key: 'description',
label: 'Description',
sortable: true,
render: (item) => item.description || '\u2014',
},
{
key: 'pipeline_count',
label: 'Pipelines',
sortable: true,
render: (item) =>
item.pipeline_count != null ? String(item.pipeline_count) : '\u2014',
},
]
}
|