- Add .prettierignore to exclude vendor packages, lock files, markdown, and YAML - Update .prettierrc: printWidth 100, singleQuote, trailingComma "all" - Run Prettier across all source files for consistent formatting - Fix unused imports (UserRequirements, setTTSProvider) - Fix eslint-disable comment placement after Prettier reformat Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
442 B
TypeScript
17 lines
442 B
TypeScript
import { cn } from '@/lib/utils';
|
|
import type { Experimental_GeneratedImage } from 'ai';
|
|
|
|
export type ImageProps = Experimental_GeneratedImage & {
|
|
className?: string;
|
|
alt?: string;
|
|
};
|
|
|
|
export const Image = ({ base64, mediaType, ...props }: ImageProps) => (
|
|
<img
|
|
{...props}
|
|
alt={props.alt}
|
|
className={cn('h-auto max-w-full overflow-hidden rounded-md', props.className)}
|
|
src={`data:${mediaType};base64,${base64}`}
|
|
/>
|
|
);
|