MessageListRowContext

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

Each supplied row's final-row flag and immediately preceding projected row role.

import type { MessageListRowContext } from '@threadplane/react/chat';

Declaration

export interface MessageListRowContext  {
  readonly current: boolean;
  readonly prevRole?: ChatMessageRole;
}

Members

current

True exactly for the final supplied row, regardless of role.

readonly current: boolean;

prevRole

Role of rows[index - 1], or undefined for the first supplied row.

readonly prevRole?: ChatMessageRole;