fix(custom-widgets): reduce action menu file below architecture line limit

This commit is contained in:
Thomas Camlong committed 2026-08-17 08:39:29 +02:00
1 parent 1ee519bb7a
commit bd171bf73b
3 files changed
+35 -50

No files matched your search

@@ -0,0 +1,9 @@
export const downloadJson = (data: unknown, filename: string) => {
const blob = new Blob([JSON.stringify(data, null, 2)], { type: "application/json" });
const url = URL.createObjectURL(blob);
const anchor = document.createElement("a");
anchor.href = url;
anchor.download = filename;
anchor.click();
URL.revokeObjectURL(url);
};