import {ColumnConfig} from '@common/datatable/column-config'; import {Trans} from '@common/i18n/trans'; import {FormattedDate} from '@common/i18n/formatted-date'; import {Link} from 'react-router-dom'; import {IconButton} from '@common/ui/buttons/icon-button'; import {EditIcon} from '@common/icons/material/Edit'; import React from 'react'; import {NameWithAvatar} from '@common/datatable/column-templates/name-with-avatar'; import {CheckIcon} from '@common/icons/material/Check'; import {CloseIcon} from '@common/icons/material/Close'; import {Channel} from '@common/channels/channel'; import {FormattedNumber} from '@common/i18n/formatted-number'; export const ListsDatatableColumns: ColumnConfig[] = [ { key: 'name', allowsSorting: true, width: 'flex-3', visibleInMode: 'all', header: () => , body: list => { return ( {list.name} ); }, }, { key: 'user_id', allowsSorting: true, width: 'flex-2 min-w-140', header: () => , body: list => list.user && ( ), }, { key: 'items_count', width: 'w-96', header: () => , body: list => list.items_count && , }, { key: 'public', header: () => , width: 'w-96', body: list => list.public ? ( ) : ( ), }, { key: 'content_type', allowsSorting: false, header: () => , body: list => ( {list.config.contentModel ? ( ) : undefined} ), }, { key: 'layout', allowsSorting: false, header: () => , body: list => ( {list.config.layout ? ( ) : undefined} ), }, { key: 'updated_at', allowsSorting: true, maxWidth: 'max-w-100', header: () => , body: list => list.updated_at ? : '', }, { key: 'actions', header: () => , hideHeader: true, visibleInMode: 'all', align: 'end', width: 'w-42 flex-shrink-0', body: list => ( ), }, ];