1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00
unleash.unleash/frontend/src/interfaces/banner.ts

23 lines
522 B
TypeScript
Raw Normal View History

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