@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 DateDefaults = {
name: 'date',
type: 'date'
};
export const withDate = (options = {})=>{
const field = deepMerge(DateDefaults, options);
return field;
};
export const withDateRequired = (options = {})=>{
const field = deepMerge({
...DateDefaults,
required: true
}, options);
return field;
};
//# sourceMappingURL=withDate.js.map