fleet/frontend/interfaces/notification.ts
2021-08-30 15:52:13 -04:00

16 lines
332 B
TypeScript

import PropTypes from "prop-types";
export default PropTypes.shape({
alertType: PropTypes.string,
isVisible: PropTypes.bool,
message: PropTypes.string,
undoAction: PropTypes.func,
});
export interface INotifications {
alertType: string;
isVisible: boolean;
message: string | JSX.Element;
undoAction: () => void;
}