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";
import { get } from "lodash-es";
export default function ConnectService({
value,
showPopoverCell,
disabled,
column,
tabIndex,
rowHeight,
}: IDisplayCellProps) {
const config = column.config ?? {};
const displayKey = config.titleKey ?? config.primaryKey;
const rendered = (
{Array.isArray(value) &&
value.map((snapshot) => (
))}
);
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}
);
}