UNPKG

@platformbuilders/fluid-react

Version:
7 lines (6 loc) 358 B
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; import { ErrorText } from './styles'; const FormError = ({ children, error, ...rest }) => { return (_jsxs(_Fragment, { children: [children, error && typeof error === 'string' ? (_jsx(ErrorText, { ...rest, children: error })) : null] })); }; export default FormError;