18 lines
323 B
TypeScript
18 lines
323 B
TypeScript
'use client'
|
|
|
|
import { type ColumnDef } from '@tanstack/react-table'
|
|
|
|
// This type is used to define the shape of our data.
|
|
// You can use a Zod schema here if you want.
|
|
export type Webhook = {
|
|
id: string
|
|
url: string
|
|
}
|
|
|
|
export const columns: ColumnDef<Webhook>[] = [
|
|
{
|
|
accessorKey: 'url',
|
|
header: 'URL'
|
|
}
|
|
]
|