git commit -m "refactor: last20Messages aus _app.tsx entfernt und über Thunk in dashboard.tsx geladen"

This commit is contained in:
ISA
2025-03-25 09:34:19 +01:00
parent 8e6b26dff9
commit b536d31e48
5 changed files with 35 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
export async function fetchLast20MessagesFromWindow(): Promise<string | null> {
return new Promise((resolve) => {
if (typeof window !== "undefined" && (window as any).win_last20Messages) {
resolve((window as any).win_last20Messages);
} else {
resolve(null);
}
});
}