mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
3fbd3ec4f9
* all * update * react 18 * update * update * update
24 lines
523 B
TypeScript
24 lines
523 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
|
|
} |