import { IDisplayCellProps } from "@src/components/fields/types"; import { ButtonBase, Grid, Chip } from "@mui/material"; import { ChevronDown } from "@src/assets/icons"; import ChipList from "@src/components/Table/TableCell/ChipList"; export default function ConnectTable({ value, showPopoverCell, disabled, column, tabIndex, rowHeight, }: IDisplayCellProps) { const config = column.config ?? {}; const rendered = ( {Array.isArray(value) ? ( value.map((item: any) => ( item.snapshot[key]) .join(" ")} /> )) ) : value ? ( value.snapshot[key]) .join(" ")} /> ) : null} ); if (disabled) return rendered; return ( showPopoverCell(true)} style={{ width: "100%", height: "100%", font: "inherit", color: "inherit !important", letterSpacing: "inherit", textAlign: "inherit", justifyContent: "flex-start", }} tabIndex={tabIndex} > {rendered} ); }