feat: add table component on manage account and manage groups

This commit is contained in:
Wikzyy
2025-02-20 21:55:42 +07:00
parent fa5f143558
commit fdabe25950
5 changed files with 309 additions and 0 deletions

View File

@ -0,0 +1,30 @@
import { ColumnDef } from '@tanstack/react-table';
export type Group = {
id: number;
createdDate: Date;
name: string;
description: string;
};
export const columns: ColumnDef<Group>[] = [
{
accessorKey: 'id',
header: 'ID'
},
{
accessorKey: 'createdDate',
header: 'Created Date'
},
{
accessorKey: 'name',
header: 'Name'
},
{
accessorKey: 'description',
header: 'Description'
},
{
id: 'actions'
}
];