@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
12 lines (11 loc) • 354 B
TypeScript
export declare const isWindowCheck: <T>(container: T | Window | null) => container is Window;
declare const useScrollSave: (model?: {
scrollY: number;
}, options?: {
getTarget?: () => HTMLElement | null;
visible: boolean;
}) => {
scrollUnsubscribe: () => void;
scrollSubscribe: () => void;
};
export default useScrollSave;