UNPKG

piral-core

Version:

The core library for creating a Piral instance.

9 lines 404 B
import * as React from 'react'; import { SetError } from './SetError'; /** * The component capable of batch setting error handling components. */ export function SetErrors({ errors = {} }) { return (React.createElement(React.Fragment, null, Object.keys(errors).map((key) => (React.createElement(SetError, { type: key, component: errors[key], key: key }))))); } //# sourceMappingURL=SetErrors.js.map