@rc-component/notification
Version:
notification ui component for react
12 lines (11 loc) • 343 B
TypeScript
export interface StackConfig {
threshold?: number;
offset?: number;
}
type StackParams = Required<StackConfig>;
type UseStack = (config?: boolean | StackConfig) => [boolean, StackParams];
/**
* Resolves the stack setting into an enabled flag and normalized stack params.
*/
declare const useStack: UseStack;
export default useStack;