chore: create frontend project from boilerplate

This commit is contained in:
Henry Li
2026-01-14 09:50:26 +08:00
parent 3ff7613dd9
commit c628c7f8db
72 changed files with 15444 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { cn } from "@/lib/utils";
import type { Experimental_GeneratedImage } from "ai";
export type ImageProps = Experimental_GeneratedImage & {
className?: string;
alt?: string;
};
export const Image = ({
base64,
uint8Array,
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}`}
/>
);