UNPKG

@appbuckets/react-ui-smart-components

Version:

UI Extended Components that work with @appbuckets/react-client and @appbuckets/react-ui

17 lines (16 loc) 606 B
import * as React from 'react'; import type { AnyObject } from '@appbuckets/react-ui-core'; import { HookedFormContext } from '@appbuckets/react-ui-forms/context'; interface UseFormBuiltContextValue { /** Set if current form is built in edit mode */ isEditing: boolean; } export declare type UseFormBuiltResult<Dto extends AnyObject> = UseFormBuiltContextValue & HookedFormContext<Dto>; declare const FormBuiltProvider: React.Provider< UseFormBuiltContextValue | undefined >; export declare function useFormBuilt< Dto extends AnyObject >(): UseFormBuiltResult<Dto>; export { FormBuiltProvider };