Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

835 B
Raw Blame
import type { MessageListItem } from '@service-storage/messages';
import { StandaloneThread } from './StandaloneThread';

type ReadonlyThreadProps = {
  channelId: string;
  messageId: string;
  data?: MessageListItem;
  onClickMessage?: (messageId: string, e: MouseEvent) => void;
};

export function ReadonlyThread(props: ReadonlyThreadProps) {
  return (
    <StandaloneThread.Root
      channelId={props.channelId}
      messageId={props.messageId}
      data={props.data}
    >
      <StandaloneThread.ParentMessage
        onClickMessage={props.onClickMessage}
        class={props.onClickMessage ? 'hover:bg-hover' : undefined}
      />
      <StandaloneThread.Replies
        onClickMessage={props.onClickMessage}
        class={props.onClickMessage ? 'hover:bg-hover' : undefined}
      />
    </StandaloneThread.Root>
  );
}