mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
20 lines
454 B
TypeScript
20 lines
454 B
TypeScript
|
import React from 'react';
|
||
|
|
||
|
export interface IToastData {
|
||
|
title: string;
|
||
|
text: string;
|
||
|
components?: JSX.Element[];
|
||
|
show: boolean;
|
||
|
persist: boolean;
|
||
|
confetti?: boolean;
|
||
|
type: string;
|
||
|
}
|
||
|
interface IFeatureStrategiesUIContext {
|
||
|
toastData: IToastData;
|
||
|
setToast: React.Dispatch<React.SetStateAction<IToastData>>;
|
||
|
}
|
||
|
|
||
|
const UIContext = React.createContext<IFeatureStrategiesUIContext | null>(null);
|
||
|
|
||
|
export default UIContext;
|