import { ArrayFieldTitleProps, FormContextType, getUiOptions, RJSFSchema, StrictRJSFSchema, titleId, } from '@snups/rjsf-utils'; /** The `ArrayFieldTitleTemplate` component renders a header for the array. * * @param props - The `ArrayFieldTitleProps` for the component */ export default function ArrayFieldTitleTemplate< T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any, >({ title, uiSchema, required, idSchema }: ArrayFieldTitleProps) { const uiOptions = getUiOptions(uiSchema); return (
{uiOptions.title || title} {required ? '*' : ''}
); }