import type { FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils'; import { getSubmitButtonOptions } from '@rjsf/utils'; import { Button } from 'primereact/button'; /** The `SubmitButton` renders a button that represents the `Submit` action on a form */ export default function SubmitButton< T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any, >({ uiSchema }: SubmitButtonProps) { const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions(uiSchema); if (norender) { return null; } return