tests pass

This commit is contained in:
Eason Goodale
2025-04-19 18:49:29 -07:00
parent 0d6a98f9af
commit 35148c2ba9
14 changed files with 783 additions and 6 deletions

View 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>;
}