react-free-dropdown
Version:
Easy custom dropdown list with React
22 lines (21 loc) • 912 B
TypeScript
import * as React from 'react';
export interface StatusChangeState {
isFocus: boolean;
}
export declare const statusChangeState: StatusChangeState;
export declare enum StatusChangeActionType {
IS_FOCUS = "IS_FOCUS",
ON_BLUR = "ON_BLUR"
}
declare type StatusChangeAction = {
type: StatusChangeActionType.IS_FOCUS;
isFocus: boolean;
} | {
type: StatusChangeActionType.ON_BLUR;
};
export default function statusChangeReducer(state: StatusChangeState, action: StatusChangeAction): StatusChangeState;
export declare const StatusChangeStateContext: React.Context<StatusChangeState | undefined>;
export declare const StatusChangeDispatchContext: React.Context<React.Dispatch<StatusChangeAction> | undefined>;
export declare function useStatusChangeState(): StatusChangeState;
export declare function useStatusChangeDispatch(): React.Dispatch<StatusChangeAction>;
export {};