import * as React from 'react'; import Text from '../text/Text'; import cx from 'classnames'; type ErrorMessageColorType = 'text-red-60' | 'text-red-40'; export type ErrorMessagePropsType = { id?: string; className?: string; color?: ErrorMessageColorType; children: React.ReactNode; } & Omit< React.AllHTMLAttributes, 'id' | 'className' | 'color' | 'children' >; const ErrorMessage = ({ className, color = 'text-red-60', id, children, ...props }: ErrorMessagePropsType) => { const errorMessageClass = cx('sg-error-message', className); return ( {children} ); }; export default ErrorMessage;