import { TextCell } from 'component/common/Table/cells/TextCell/TextCell'; import type { IEnvironment } from 'interfaces/environments'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { Badge } from 'component/common/Badge/Badge'; import { Highlighter } from 'component/common/Highlighter/Highlighter'; import { useSearchHighlightContext } from 'component/common/Table/SearchHighlightContext/SearchHighlightContext'; import { styled, Typography } from '@mui/material'; import { HtmlTooltip } from 'component/common/HtmlTooltip/HtmlTooltip'; const StyledTooltipTitle = styled(Typography)(({ theme }) => ({ fontWeight: 'bold', fontSize: theme.fontSizes.smallerBody, })); const StyledTooltipDescription = styled(Typography)(({ theme }) => ({ fontSize: theme.fontSizes.smallerBody, })); const StyledBadge = styled(Badge)(({ theme }) => ({ marginLeft: theme.spacing(1), })); interface IEnvironmentNameCellProps { environment: IEnvironment; } export const EnvironmentNameCell = ({ environment, }: IEnvironmentNameCellProps) => { const { searchQuery } = useSearchHighlightContext(); return ( ({ [theme.breakpoints.up('sm')]: { minWidth: '350px', }, })} >
{environment.name} Predefined} /> Deprecated environment This environment is not auto-enabled for new projects. The project owner will need to manually enable it in the project. } describeChild arrow > Deprecated } />
); };