2018-11-19 14:53:08 +00:00
|
|
|
import validations from 'consul-ui/validations/intention';
|
|
|
|
import builderFactory from 'consul-ui/utils/form/builder';
|
|
|
|
const builder = builderFactory();
|
2019-05-01 18:09:29 +00:00
|
|
|
export default function(container, name = '', v = validations, form = builder) {
|
2018-11-19 14:53:08 +00:00
|
|
|
return form(name, {}).setValidators(v);
|
|
|
|
}
|