@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
17 lines (16 loc) • 471 B
TypeScript
import { ArrayType } from '../../models/types';
import { ThreadModel } from '../../models/ThreadModel';
export type ThreadGroupType = {
groupKey: string;
thread: ThreadModel;
time: number;
};
export type ListGroupType = {
label: string;
timestamp: number;
id: string;
};
export declare const useThreadsGroupedList: (threads: ArrayType<ThreadModel>) => {
groupsValues: ListGroupType[];
threadsInGroup: ThreadGroupType[];
};