mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
12 lines
218 B
TypeScript
12 lines
218 B
TypeScript
|
import React from 'react';
|
||
|
|
||
|
const ToastContext = React.createContext((msg: string) => {
|
||
|
return;
|
||
|
});
|
||
|
|
||
|
function useToastContext() {
|
||
|
return React.useContext(ToastContext);
|
||
|
}
|
||
|
|
||
|
export { useToastContext, ToastContext };
|