/* Copyright 2026 Marimo. All rights reserved. */
import type { JSX } from "react";
import type { OutputChannel } from "@/core/kernel/messages";
import { cn } from "@/utils/cn";
import { RenderTextWithLinks } from "./console/text-rendering";
interface Props {
text: string;
channel?: OutputChannel;
wrapText?: boolean;
}
export const TextOutput = ({ text, channel, wrapText }: Props): JSX.Element => {
const shouldRenderAnsi = channel === "stdout" || channel === "stderr";
const renderAnsiText = (text: string) => {
return (
);
};
return (
{shouldRenderAnsi ? renderAnsiText(text) : text}
);
};