sourcebot/packages/web/src/app/settings/components/memberTableColumns.tsx
Michael Sukkarieh 90550181af
add invite system and google oauth provider (#185)
* add settings page with members list

* add invite to schema and basic create form

* add invite table

* add basic invite link copy button

* add auth invite accept case

* add non auth logic

* add google oauth provider
2025-02-10 14:31:38 -08:00

27 lines
No EOL
627 B
TypeScript

'use client'
import { Column, ColumnDef } from "@tanstack/react-table"
export type MemberColumnInfo = {
name: string;
role: string;
}
export const memberTableColumns = (): ColumnDef<MemberColumnInfo>[] => {
return [
{
accessorKey: "name",
cell: ({ row }) => {
const member = row.original;
return <div>{member.name}</div>;
}
},
{
accessorKey: "role",
cell: ({ row }) => {
const member = row.original;
return <div>{member.role}</div>;
}
}
]
}