1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/frontend/src/interfaces/banner.ts

20 lines
448 B
TypeScript
Raw Normal View History

export type BannerVariant = 'info' | 'warning' | 'error' | 'success';
export interface IBanner {
message: string;
variant?: BannerVariant;
sticky?: boolean;
icon?: string;
link?: string;
linkText?: string;
plausibleEvent?: string;
dialogTitle?: string;
dialog?: string;
}
export interface IInternalBanner extends Omit<IBanner, 'plausibleEvent'> {
id: number;
enabled: boolean;
createdAt: string;
}