file download component

This commit is contained in:
Julian Krauser 2025-01-18 11:30:46 +01:00
parent 2189a3d33b
commit 9d81666a3c
14 changed files with 75 additions and 20 deletions

View file

@ -0,0 +1,34 @@
export default interface BaseFile {
id: number;
documentId: string;
name: string;
alternativeText: string | null;
caption: string | null;
width: number;
height: number;
formats: Record<string, ImageFormat> | null;
hash: string;
ext: string;
mime: string;
size: number;
url: string;
previewUrl: string | null;
provider: string;
provider_metadata: any;
createdAt: string;
updatedAt: string;
publishedAt: string;
}
export interface ImageFormat {
name: string;
hash: string;
ext: string;
mime: string;
path: string | null;
width: number;
height: number;
size: number;
sizeInBytes: number;
url: string;
}