mirror of
https://github.com/openai/codex.git
synced 2026-05-02 18:37:01 +00:00
tests pass
This commit is contained in:
14
codex-cli/src/components/chat/terminal-inline-image.tsx
Normal file
14
codex-cli/src/components/chat/terminal-inline-image.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
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>;
|
||||
}
|
||||
Reference in New Issue
Block a user