forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
414 B
16 lines
414 B
import { connectWithProvider } from '../../utils/connectWithReduxStore';
|
|
import { ModalRoot, ModalsProvider } from '@grafana/ui';
|
|
import React from 'react';
|
|
|
|
/**
|
|
* Component that enables rendering React modals from Angular
|
|
*/
|
|
export const AngularModalProxy = connectWithProvider((props: any) => {
|
|
return (
|
|
<>
|
|
<ModalsProvider {...props}>
|
|
<ModalRoot />
|
|
</ModalsProvider>
|
|
</>
|
|
);
|
|
});
|
|
|