@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
12 lines (11 loc) • 384 B
TypeScript
import type { ContextState } from '../../DataContext';
export type UseHandleStatusProps = {
outerContext: ContextState;
preventUncommittedChanges: boolean;
error: Error;
name?: string;
};
export default function useHandleStatus({ outerContext, preventUncommittedChanges, error, name, }: UseHandleStatusProps): {
hasContentChanged: boolean;
showStatus: any;
};