import {mergeConfig} from '../../configStore' import {reference} from '../types' import type {CategoryField, FieldReturn} from '../../types' const defaultProps: Partial = { name: 'category', } export const category = ( types: string | string[], props?: CategoryField, mergeProps?: Partial, ): FieldReturn => reference(types, mergeConfig('category', props, mergeProps, defaultProps))