import {ColumnConfig} from '@common/datatable/column-config'; import {CustomPage} from '@common/admin/custom-pages/custom-page'; import {Trans} from '@common/i18n/trans'; import {Link} from 'react-router-dom'; import {LinkStyle} from '@common/ui/buttons/external-link'; import {NameWithAvatar} from '@common/datatable/column-templates/name-with-avatar'; import {FormattedDate} from '@common/i18n/formatted-date'; import React from 'react'; import {IconButton} from '@common/ui/buttons/icon-button'; import {EditIcon} from '@common/icons/material/Edit'; export const CustomPageDatatableColumns: ColumnConfig[] = [ { key: 'slug', allowsSorting: true, width: 'flex-2 min-w-200', visibleInMode: 'all', header: () => , body: page => ( {page.slug} ), }, { key: 'user_id', allowsSorting: true, width: 'flex-2 min-w-140', header: () => , body: page => page.user && ( ), }, { key: 'type', maxWidth: 'max-w-100', header: () => , body: page => , }, { key: 'updated_at', allowsSorting: true, width: 'w-100', header: () => , body: page => , }, { key: 'actions', header: () => , hideHeader: true, align: 'end', width: 'w-84 flex-shrink-0', visibleInMode: 'all', body: page => ( ), }, ];