import Block from '../../../Primitives/Block/Block' import Text from '../../../Text/Text' import { InputSizeV2 } from '../../inputV2.types' import { addPxToValue } from '../../../../global-utils/GlobalUtils' import type { InputFooterV2Tokens } from '../../inputV2.tokens' type InputFooterV2Props = { error?: boolean errorMessage?: string hintText?: string errorId?: string hintId?: string tokens?: InputFooterV2Tokens hintTextId?: string errorMessageId?: string size?: InputSizeV2 } const InputFooterV2 = ({ error, errorMessage, hintText, errorId, hintId, tokens, hintTextId, errorMessageId, size = InputSizeV2.SM, }: InputFooterV2Props) => { return ( ((error && errorMessage) || hintText) && ( {error && errorMessage && ( {errorMessage} )} {hintText && !error && ( {hintText} )} ) ) } export default InputFooterV2