'use client' import type { ColumnDef } from '@tanstack/react-table' export interface FormSettingsRow { settingsKey: string label: string notificationEmails: string | null } export function createFormSettingsColumns(isPending: boolean): ColumnDef[] { return [ { id: 'form', header: 'Form', cell: ({ row }) => {row.original.label} }, { id: 'notificationEmails', header: 'Notification emails', cell: ({ row }) => isPending ? ( Loading… ) : row.original.notificationEmails ? ( {row.original.notificationEmails} ) : ( No emails configured ) } ] }