import PropTypes from "prop-types"; import { Tooltip, Stack, Container } from "@mui/material"; import Label from "ui-component/Label"; import { styled } from "@mui/material/styles"; import { showSuccess } from "utils/common"; const TooltipContainer = styled(Container)({ maxHeight: "250px", overflow: "auto", "&::-webkit-scrollbar": { width: "0px", // Set the width to 0 to hide the scrollbar }, }); const NameLabel = ({ name, models }) => { let modelMap = []; modelMap = models.split(","); modelMap.sort(); return ( {modelMap.map((item, index) => { return ( ); })} } placement="top" > {name} ); }; NameLabel.propTypes = { name: PropTypes.string, models: PropTypes.string, }; export default NameLabel;