saleor-dashboard/src/components/messages/index.ts

25 lines
474 B
TypeScript
Raw Normal View History

2020-06-24 14:17:56 +00:00
import { positions } from "react-alert";
2019-06-19 14:40:52 +00:00
export interface IMessage {
actionBtn?: {
label: string;
action: () => void;
};
2019-11-25 16:53:10 +00:00
autohide?: number;
expandText?: string;
2019-11-25 16:23:52 +00:00
title?: string;
2019-06-19 14:40:52 +00:00
text: string;
onUndo?: () => void;
2020-06-23 11:47:30 +00:00
status?: "success" | "error" | "info" | "warning";
2019-06-19 14:40:52 +00:00
}
2020-06-24 14:17:56 +00:00
export const notificationOptions = {
containerStyle: {
zIndex: 1000
},
offset: "20px",
position: positions.TOP_RIGHT,
timeout: 3000
};
2019-06-19 14:40:52 +00:00
export * from "./MessageManager";