fe77ede49e
* 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>
21 lines
508 B
TypeScript
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
|
|
}
|