import { SettingsItemTypeTag } from '@/settings/components/SettingsItemTypeTag'; import { StyledActionTableCell, StyledNameTableCell, } from '@/settings/data-model/object-details/components/SettingsObjectItemTableRowStyledComponents'; import { TableCell } from '@/ui/layout/table/components/TableCell'; import { TableRow } from '@/ui/layout/table/components/TableRow'; import { useContext } from 'react'; import { isDefined } from 'twenty-shared/utils'; import { IconChevronRight, useIcons } from 'twenty-ui/display'; import { ThemeContext } from 'twenty-ui/theme-constants'; import { type ApplicationDataTableRow } from '~/pages/settings/applications/components/SettingsApplicationDataTable'; const MAIN_ROW_GRID_COLUMNS = '180px 1fr 98.7px 36px'; export const SettingsApplicationDataTableRow = ({ row, }: { row: ApplicationDataTableRow; }) => { const { theme } = useContext(ThemeContext); const { getIcon } = useIcons(); const Icon = getIcon(row.icon); return ( {isDefined(Icon) && ( )} {row.labelPlural} {row.fieldsCount} ); };