mirror of
https://github.com/openai/codex.git
synced 2026-04-29 08:56:38 +00:00
17 lines
433 B
TypeScript
17 lines
433 B
TypeScript
import { Text } from "ink";
|
|
import React from "react";
|
|
|
|
export interface TerminalInlineImageProps {
|
|
src: string | Buffer | Uint8Array;
|
|
alt?: string;
|
|
width?: number | string;
|
|
height?: number | string;
|
|
}
|
|
|
|
// During tests or when terminal does not support images, fallback to alt.
|
|
export default function TerminalInlineImage({
|
|
alt = "[image]",
|
|
}: TerminalInlineImageProps): React.ReactElement {
|
|
return <Text>{alt}</Text>;
|
|
}
|