mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-04 02:04:06 +00:00
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
31 lines
884 B
TypeScript
31 lines
884 B
TypeScript
export const WIZARD_FOOTER_ACTION_TYPE = {
|
|
BUTTON: "button",
|
|
SUBMIT: "submit",
|
|
} as const;
|
|
|
|
export type WizardFooterActionType =
|
|
(typeof WIZARD_FOOTER_ACTION_TYPE)[keyof typeof WIZARD_FOOTER_ACTION_TYPE];
|
|
|
|
export type WizardFooterSecondaryActionVariant = "outline" | "link";
|
|
|
|
export interface WizardFooterConfig {
|
|
showBack: boolean;
|
|
backLabel: string;
|
|
backDisabled?: boolean;
|
|
onBack?: () => void;
|
|
showSecondaryAction?: boolean;
|
|
secondaryActionLabel?: string;
|
|
secondaryActionDisabled?: boolean;
|
|
secondaryActionVariant?: WizardFooterSecondaryActionVariant;
|
|
secondaryActionType?: WizardFooterActionType;
|
|
secondaryActionFormId?: string;
|
|
onSecondaryAction?: () => void;
|
|
showAction: boolean;
|
|
actionLabel: string;
|
|
actionLoading?: boolean;
|
|
actionDisabled?: boolean;
|
|
actionType: WizardFooterActionType;
|
|
actionFormId?: string;
|
|
onAction?: () => void;
|
|
}
|