import type {Column} from '@gravity-ui/react-data-table'; import {Flex, Label} from '@gravity-ui/uikit'; import {SubjectWithAvatar} from '../../../../../../components/SubjectWithAvatar/SubjectWithAvatar'; import {TitleWithHelpMark} from '../../../../../../components/TitleWithHelpmark/TitleWithHelpmark'; import type {PreparedAccessRights} from '../../../../../../types/api/acl'; import i18n from '../../i18n'; import {block} from '../../shared'; import {SubjectActions} from './Actions'; export const columns: Column[] = [ { name: 'subject', width: 210, get header() { return i18n('label_subject'); }, render: ({row: {subject}}) => { return ; }, }, { name: 'explicit', width: 400, get header() { return ( ); }, render: ({row: {subject, explicit}}) => { return ( {explicit.map((right) => ( ))} ); }, sortable: false, }, { name: 'effective', width: 400, get header() { return ( ); }, render: ({row: {effective}}) => { return ( {effective.map((right) => ( ))} ); }, sortable: false, }, ];