import classnames from 'classnames'; import React from 'react'; import type { IIconProps } from '@spinnaker/presentation'; import { IconTooltip } from '../../presentation'; import { TOOLTIP_DELAY_SHOW } from '../utils/defaults'; export interface IEnvironmentItemProps { title: string | React.ReactElement; className?: string; iconTooltip: string; iconName: IIconProps['name']; withPadding?: boolean; size?: 'regular' | 'small'; rightElement?: React.ReactElement; } export const EnvironmentItem: React.FC = ({ title, size = 'regular', iconName, iconTooltip, className, rightElement, withPadding = true, children, }) => { return (
{title} {rightElement &&
{rightElement}
}
{children}
); };