@plteam/chat-ui
Version:
CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript
6 lines (5 loc) • 366 B
TypeScript
import React from 'react';
type EvType<T extends HTMLElement> = React.KeyboardEvent<T>;
export declare const useEnterPress: <T extends HTMLElement>(fn: (event: EvType<T>) => void) => (event: EvType<T> | undefined) => void;
export declare const handleIgnoreEnterPress: <T extends HTMLElement>(event: EvType<T> | undefined) => void;
export default useEnterPress;