import { createPlugin, createRoutableExtension } from '@backstage/core';

import { rootRouteRef } from './routes';

export const {{ pluginVar }} = createPlugin({
  id: '{{ id }}',
  routes: {
    root: rootRouteRef,
  },
});

export const {{ extensionName }} = {{ pluginVar }}.provide(
  createRoutableExtension({
    component: () =>
      import('./components/ExampleComponent').then(m => m.ExampleComponent),
    mountPoint: rootRouteRef,
  }),
);
