UNPKG

@ant-design/x

Version:

Craft AI-driven interfaces effortlessly

10 lines (9 loc) 384 B
import type { Conversation, Groupable } from '../interface'; import type { ConversationsProps } from '..'; type GroupList = { data: Conversation[]; name?: string; title?: Groupable['title']; }[]; declare const useGroupable: (groupable?: ConversationsProps['groupable'], items?: Conversation[]) => [groupList: GroupList, enableGroup: boolean]; export default useGroupable;