PromoCursed/node_modules/rc-mentions/lib/MentionsContext.d.ts
2024-08-20 23:25:37 +04:00

13 lines
477 B
TypeScript

import * as React from 'react';
import type { OptionProps } from './Option';
export interface MentionsContextProps {
notFoundContent: React.ReactNode;
activeIndex: number;
setActiveIndex: (index: number) => void;
selectOption: (option: OptionProps) => void;
onFocus: React.FocusEventHandler<HTMLElement>;
onBlur: React.FocusEventHandler<HTMLElement>;
}
declare const MentionsContext: React.Context<MentionsContextProps>;
export default MentionsContext;