import * as React from 'react'; import FormFieldError from 'wix-ui-icons-common/system/FormFieldError'; import {Tooltip} from '../Tooltip'; import style from './Error.st.css'; const ErrorComponent = () => (
); const getInputErrorSuffix = (error: boolean | string) => { if (error === true) { return ; } return ( ); }; export const getInputSuffix = ({error, disabled, suffix}) => { if (!error || disabled) { return suffix; } return getInputErrorSuffix(error); };