ChatSidenavSections

Unpublished development API. This package is under development and is not available as a published release.

The usual sidebar content: New chat, Projects, Recent and a collapsed Archived section. Place it inside ChatSidenav, which supplies the shell, search and collapse. Every list is controlled: the app owns the data and what selecting or acting on a row does.

import { ChatSidenavSections } from '@threadplane/react/chat';

Declaration · overload 1

export declare function ChatSidenavSections(input: ChatSidenavSectionsProps): import("react/jsx-runtime").JSX.Element;

Parameters

{ onNewChat, threads, archivedThreads, activeThreadId, onThreadSelect, threadActions, projects, selectedProjectId, onProjectSelect, projectActions, now, children, className, newChatLabel, projectsLabel, recentLabel, archivedLabel, archivedEmptyLabel, } · required
input · required
ChatSidenavSectionsProps

Returns

import("react/jsx-runtime").JSX.Element