Refactor code

This commit is contained in:
2026-02-03 12:17:47 +01:00
parent ea5eb6fa59
commit 8572e22c5d
185 changed files with 1268 additions and 1458 deletions

View File

@ -1,6 +1,7 @@
"use server";
import { s3 } from "@/lib/s3";
import type { CommissionExampleItem } from "@/types/commissions";
import {
DeleteObjectCommand,
ListObjectsV2Command,
@ -9,13 +10,6 @@ import {
const PREFIX = "commissions/examples/";
export type CommissionExampleItem = {
key: string;
url: string;
size: number | null;
lastModified: string | null;
};
function buildImageUrl(key: string) {
return `/api/image/${encodeURI(key)}`;
}