Files
speckle-connectors-dui/lib/models/card/notification.ts
T
Oğuzhan Koral fe77ede49e feat: introduce CI linting & fix various issues (#5)
* introduce CI checks

* fixx

* add caching

* fixes

* wip

* server bridge linting

* No lint errors

* fix paths on lint:prettier

* make files pretty again

* fix stylelint

* fix lock

---------

Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2025-05-14 10:05:51 +03:00

21 lines
508 B
TypeScript

import type { ConversionResult } from '~/lib/conversions/conversionResult'
export type ModelCardNotificationLevel = 'info' | 'danger' | 'warning' | 'success'
export type ModelCardNotification = {
modelCardId: string
text: string
level: ModelCardNotificationLevel
cta?: {
name: string
action: () => void
}
/**
* If set, will display a view report button next to cta
*/
report?: ConversionResult[]
// TODO figure out re report button
dismissible: boolean
timeout?: number
}