mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
11 lines
349 B
TypeScript
11 lines
349 B
TypeScript
import type { AttachmentMetadata } from "@/attachments/types";
|
|
import { encodeAttachmentsForSend } from "@/attachments/service";
|
|
|
|
type ImageInput = AttachmentMetadata;
|
|
|
|
export async function encodeImages(
|
|
images?: ImageInput[],
|
|
): Promise<Array<{ data: string; mimeType: string }> | undefined> {
|
|
return await encodeAttachmentsForSend(images);
|
|
}
|