Avoid reflow by showing chat thunk status in a toast
This commit is contained in:
+6
-1
@@ -1,11 +1,16 @@
|
||||
import type {Component} from "svelte"
|
||||
import {writable} from "svelte/store"
|
||||
import {randomId} from "@welshman/lib"
|
||||
import {copyToClipboard} from "@lib/html"
|
||||
|
||||
export type ToastParams = {
|
||||
message: string
|
||||
message?: string
|
||||
timeout?: number
|
||||
theme?: "error"
|
||||
children?: {
|
||||
component: Component<any>
|
||||
props: Record<string, any>
|
||||
}
|
||||
action?: {
|
||||
message: string
|
||||
onclick: () => void
|
||||
|
||||
Reference in New Issue
Block a user