UNPKG

@adobe/genstudio-uix-sdk

Version:
17 lines (16 loc) 526 B
import { AppMetadata } from "./AppMetadata"; /** * App is a type that represents an app which contains a url toteh guest application and metadata. */ export type App = { metadata: AppMetadata; url: string; }; /** * Toggle is a type that represents a toggle which contains a metadata and a function to be called when the toggle is clicked. * In most cases the toggle will be used to open a dialog or a panel which is of an App type. */ export type Toggle = { metadata: AppMetadata; onClick: () => void; };