envoc-form
Version:
Envoc form components
8 lines (7 loc) • 373 B
TypeScript
/// <reference types="react" />
export interface FormBasedPreventNavigationProps {
ignoreLostChanges?: boolean;
promptMessage?: string;
}
/** Prevent the user from navigating away from a form if there are any changes. */
export default function FormBasedPreventNavigation({ ignoreLostChanges, promptMessage, }: FormBasedPreventNavigationProps): JSX.Element;