import { coreModule } from 'grafana/app/core/core' ; import { provideTheme } from './ConfigProvider' ; export function react2AngularDirective ( name , component , options ) { coreModule . directive ( name , [ 'reactDirective' , reactDirective => { return reactDirective ( provideTheme ( component ) , options ) ; } , ] ) ; }