UNPKG

@payfit/unity-components

Version:

10 lines (9 loc) 579 B
import { PropsWithChildren } from 'react'; import { Schema } from '../../hooks/use-form.types.js'; interface UnityFormContextValue<TSchema extends Schema> { schema: TSchema; } export declare const UnityFormContext: import('react').Context<UnityFormContextValue<Schema> | null>; export declare function UnityFormProvider<TSchema extends Schema>({ children, schema, }: PropsWithChildren<UnityFormContextValue<TSchema>>): import("react/jsx-runtime").JSX.Element; export declare function useUnityFormProvider<TSchema extends Schema>(): UnityFormContextValue<TSchema>; export {};