web/dialogs: move buttons to own component & add optional timeout

This commit is contained in:
wukko
2024-07-28 14:49:12 +06:00
parent a2ead8a813
commit 11d3d71937
3 changed files with 60 additions and 23 deletions

View File

@@ -4,6 +4,7 @@ export type DialogButton = {
text: string,
color?: "red",
main: boolean,
timeout?: number, // milliseconds
action: () => unknown | Promise<unknown>
}