@bytebeans/macaw-ui
Version:
Saleor's UI component library
15 lines (14 loc) • 608 B
TypeScript
import React from "react";
import { ConfirmButtonLabels, ConfirmButtonTransitionState } from "../ConfirmButton";
export declare type SavebarLabels = ConfirmButtonLabels & Record<"delete" | "cancel", string>;
export declare type SavebarTooltips = Partial<Record<"confirm" | "delete" | "cancel", string>>;
export interface SavebarProps {
disabled: boolean;
state: ConfirmButtonTransitionState;
labels: SavebarLabels;
tooltips?: SavebarTooltips;
onCancel: () => void;
onDelete?: () => void;
onSubmit: () => void;
}
export declare const Savebar: React.FC<SavebarProps>;