import { FunctionalComponent, h } from '@stencil/core'; import { isEmpty } from '../../../utils/helper/utils'; export type ErrorMessageProps = { error?: boolean; message?: string; }; export const ErrorMessage: FunctionalComponent = ({ message, error = false }) => { const hideError = !error || isEmpty(message); return ( ); };