UNPKG

@manzano/use-is-active

Version:
10 lines (9 loc) 478 B
import { PropsWithChildren } from 'react'; export interface ActivityOptions { delayBeforeActivation: number; minActiveDuration: number; } type ActivityOptionsProviderProps = PropsWithChildren<Partial<ActivityOptions>>; export declare function ActivityOptionsProvider({ delayBeforeActivation, minActiveDuration, children, }: ActivityOptionsProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useActivityOptions(): ActivityOptions; export {};