import type { Meta, StoryObj } from '@storybook/angular';
import { applicationConfig } from '@storybook/angular';
import { provideRouter } from '@angular/router';
import { LinkComponent } from './link.component';

const meta: Meta<LinkComponent> = {
  title: 'Atoms/Link',
  component: LinkComponent,
  decorators: [applicationConfig({ providers: [provideRouter([])] })],
  render: (args) => ({
    props: args,
    template: `<app-link [to]="to">Naar het dashboard</app-link>`,
  }),
  args: { to: '/dashboard' },
};
export default meta;
type Story = StoryObj<LinkComponent>;

export const Default: Story = {};
