stackpress
Version:
Incept is a content management framework.
15 lines (14 loc) • 402 B
TypeScript
import type { ReactNode } from 'react';
export declare function useModal(): {
className: (className: string) => void;
title: (title: string) => void;
body: (body: ReactNode) => void;
open: (opened: boolean) => void;
};
export declare function useConfirm(config: {
label: () => string;
message: () => ReactNode;
action: () => Promise<void>;
}): {
confirm: () => void;
};