Filemedium importancesource

AssistantRedactedThinkingMessage.tsx

components/messages/AssistantRedactedThinkingMessage.tsx

31
Lines
2603
Bytes
1
Exports
3
Imports
10
Keywords

What this is

This page documents one file from the repository and includes its full source so you can read it without leaving the docs site.

Beginner explanation

This file is one piece of the larger system. Its name, directory, imports, and exports show where it fits. Start by reading the exports and related files first.

How it is used

Start from the exports list and related files. Those are the easiest clues for where this file fits into the system.

Expert explanation

Architecturally, this file intersects with ui-flow. It contains 31 lines, 3 detected imports, and 1 detected exports.

Important relationships

Detected exports

  • AssistantRedactedThinkingMessage

Keywords

reactaddmargintextelsecompiler-runtimeassistantredactedthinkingmessagesymbolmemo_cache_sentineldimcoloritalic

Detected imports

  • react/compiler-runtime
  • react
  • ../../ink.js

Source notes

This page embeds the full file contents. Small or leaf files are still indexed honestly instead of being over-explained.

Open parent directory

Full source

import { c as _c } from "react/compiler-runtime";
import React from 'react';
import { Box, Text } from '../../ink.js';
type Props = {
  addMargin: boolean;
};
export function AssistantRedactedThinkingMessage(t0) {
  const $ = _c(3);
  const {
    addMargin: t1
  } = t0;
  const addMargin = t1 === undefined ? false : t1;
  const t2 = addMargin ? 1 : 0;
  let t3;
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
    t3 = <Text dimColor={true} italic={true}>✻ Thinking…</Text>;
    $[0] = t3;
  } else {
    t3 = $[0];
  }
  let t4;
  if ($[1] !== t2) {
    t4 = <Box marginTop={t2}>{t3}</Box>;
    $[1] = t2;
    $[2] = t4;
  } else {
    t4 = $[2];
  }
  return t4;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJSZWFjdCIsIkJveCIsIlRleHQiLCJQcm9wcyIsImFkZE1hcmdpbiIsIkFzc2lzdGFudFJlZGFjdGVkVGhpbmtpbmdNZXNzYWdlIiwidDAiLCIkIiwiX2MiLCJ0MSIsInVuZGVmaW5lZCIsInQyIiwidDMiLCJTeW1ib2wiLCJmb3IiLCJ0N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