blob: add2afdd010bcab591778f0c4d3e946609951337 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
export interface ImageAttachment {
base64: string;
mimeType: string;
originalName: string;
arrayBuffer: ArrayBuffer;
}
let currentAttachments: ImageAttachment[] = [];
export function setCurrentAttachments(attachments: ImageAttachment[]): void {
currentAttachments = attachments;
}
export function getCurrentAttachments(): ImageAttachment[] {
return currentAttachments;
}
export function clearCurrentAttachments(): void {
currentAttachments = [];
}
export function hasCurrentAttachments(): boolean {
return currentAttachments.length > 0;
}
|