/** * @file Supplemental error component (e.g.: for when a form field doesn't have native support for showing errors) */ import {FC} from "react"; /** * Supplemental error component props */ interface SupplementalErrorProps { /** * Error message */ error?: string; } /** * Supplemental error component (e.g.: for when a form field doesn't have native support for showing errors) * @returns JSX */ export const SupplementalError: FC = ({error}) => error !== undefined && (

{error}

);