mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 00:00:46 +00:00
25 lines
512 B
TypeScript
25 lines
512 B
TypeScript
import type { Value } from '$lib/utils'
|
|
|
|
export type DiffDrawerDiff =
|
|
| {
|
|
mode: 'normal'
|
|
deployed: Value
|
|
draft?: Value | undefined
|
|
current: Value
|
|
defaultDiffType?: 'deployed' | 'draft'
|
|
button?: { text: string; onClick: () => void }
|
|
}
|
|
| {
|
|
mode: 'simple'
|
|
original: Value
|
|
current: Value
|
|
title: string
|
|
button?: { text: string; onClick: () => void }
|
|
}
|
|
|
|
export interface DiffDrawerI {
|
|
openDrawer: () => void
|
|
closeDrawer: () => void
|
|
setDiff: (diff: DiffDrawerDiff) => void
|
|
}
|