Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

663 B
Raw Blame
import { ConfirmationDialogType } from '@ghostfolio/common/enums';

export interface AlertParams {
  copyValue?: string;
  discardFn?: () => void;
  discardLabel?: string;
  message?: string;
  title: string;
}

export interface ConfirmParams {
  confirmFn: () => void;
  confirmLabel?: string;
  confirmType?: ConfirmationDialogType;
  disableClose?: boolean;
  discardFn?: () => void;
  discardLabel?: string;
  message?: string;
  title: string;
}

export interface PromptParams {
  confirmFn: (value: string) => void;
  confirmLabel?: string;
  defaultValue?: string;
  discardLabel?: string;
  title: string;
  valueLabel?: string;
  valueSuffix?: string;
}