import { createComponentExtension , createPlugin , createRoutableExtension , createRouteRef , } from '@backstage/core-plugin-api' ; export const entityContentRouteRef = createRouteRef ( { id : 'security-insights' , } ) ; export const securityInsightsPlugin = createPlugin ( { id : 'security-insights' , routes : { entityContent : entityContentRouteRef , } , } ) ; export const EntitySecurityInsightsContent = securityInsightsPlugin . provide ( createRoutableExtension ( { name : 'EntitySecurityInsightsContent' , component : ( ) => import ( './components/Router' ) . then ( m => m . Router ) , mountPoint : entityContentRouteRef , } ) ) ; export const EntityGithubDependabotContent = securityInsightsPlugin . provide ( createComponentExtension ( { name : 'EntityGithubDependabotContent' , component : { lazy : ( ) => import ( './components/GithubDependabotTab' ) . then ( m => m . GithubDependabotTab ) , } , } ) ) ; export const EntitySecurityInsightsCard = securityInsightsPlugin . provide ( createComponentExtension ( { name : 'EntitySecurityInsightsCard' , component : { lazy : ( ) => import ( './components/SecurityInsightsWidget' ) . then ( m => m . SecurityInsightsWidget ) , } , } ) ) ; export const EntityDependabotAlertsCard = securityInsightsPlugin . provide ( createComponentExtension ( { name : 'EntityDependabotAlertsCard' , component : { lazy : ( ) => import ( './components/DependabotAlertsWidget' ) . then ( m => m . DependabotAlertsWidget ) , } , } ) ) ;