mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 08:26:22 +02:00
- Updated `next.config.ts` to scope Turbopack to the app's directory. - Modified `package.json` and `package-lock.json` to include new dependencies for Tiptap and markdown processing. - Removed deprecated chat API and added new agent and config routes for file management. - Introduced `JsonEditor` and `MarkdownViewer` components for improved content editing and display. - Enhanced `TiptapMarkdownEditor` with additional toolbar options and markdown parsing capabilities. - Updated layout and page components to integrate new editors and improve user experience.
24 lines
513 B
TypeScript
24 lines
513 B
TypeScript
/* eslint-disable @next/next/no-img-element */
|
|
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}`}
|
|
/>
|
|
);
|