@websolutespa/payload-plugin-bowl
Version:
Bowl PayloadCms plugin of the BOM Repository
18 lines (17 loc) • 443 B
JavaScript
import { deepMerge } from '@websolutespa/payload-utils';
export const TextDefaults = {
name: 'text',
type: 'text'
};
export const withText = (options = {})=>{
const field = deepMerge(TextDefaults, options);
return field;
};
export const withTextRequired = (options = {})=>{
const field = deepMerge({
...TextDefaults,
required: true
}, options);
return field;
};
//# sourceMappingURL=withText.js.map