import { addPxToValue, getTruncatedText } from '../../global-utils/GlobalUtils'
import PrimitiveText from '../Primitives/PrimitiveText/PrimitiveText'
import { Tooltip } from '../Tooltip'
import { SelectorsLabelProps } from './SelectorsContent.types'
const SelectorsLabel = ({
id,
uniqueId,
disabled,
error,
required,
size,
label,
tokens,
maxLength,
elementType = 'label',
}: SelectorsLabelProps) => {
if (!label) return null
const { truncatedValue, fullValue, isTruncated } = getTruncatedText(
label,
maxLength
)
const content = (
)
return isTruncated ? (
{content}
) : (
content
)
}
export default SelectorsLabel