import { RtBaseProps } from '@dpa/react-hoc'; import { RtData, RtFormFieldTextProps, } from '../types/rt-form-field-text.types'; export function useDefaultProps( props: RtFormFieldTextProps & RtBaseProps & { data: RtData } ) { const { width = 'full', phDisplay = 'persistent', clearable = 'hidden', readonly = false, isClearable = true, ui = 'normal', size = 'md', type = 'text', value = '', disabled = false, isDetailsSlotGridChild = false, } = props; return { ...props, width, phDisplay, clearable, readonly, isClearable, ui, size, type, value, disabled, isDetailsSlotGridChild, }; }