@octopusdeploy/design-system-components
Version:
The design systems component library.
27 lines (26 loc) • 926 B
TypeScript
import type { DesignSystemLinkHref } from "../../routing";
export interface NotificationProps {
type: NotificationType;
title: string;
description: string;
links?: Array<NotificationLinkType>;
onNotificationCallToActionClicked: () => void;
}
export declare function Notification({ type, title, description, links, onNotificationCallToActionClicked }: NotificationProps): import("react/jsx-runtime").JSX.Element;
export type NotificationType = "happy" | "info" | "warn" | "error";
export type NotificationLinkType = NotificationItemLink | NotificationItemInternalLink | NotificationItemExternalLink;
type NotificationItemInternalLink = {
type: "Internal";
label: string;
href: DesignSystemLinkHref;
};
type NotificationItemExternalLink = {
type: "External";
label: string;
href: string;
};
type NotificationItemLink = {
type: "None" | "Refresh";
label: string;
};
export {};