OperationCode/front-end

View on GitHub
components/OutboundLink/__stories__/OutboundLink.stories.tsx

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import { Meta, StoryObj } from '@storybook/react';
import { descriptions } from 'common/constants/descriptions';
import OutboundLink from '../OutboundLink';

type OutboudLinkStoryType = StoryObj<typeof OutboundLink>;

const meta: Meta<typeof OutboundLink> = {
  title: 'OutboundLink',
  component: OutboundLink,
  args: {
    analyticsEventLabel: 'Event label',
    children: descriptions.short,
    href: '#',
  },
};

export default meta;

export const Default: OutboudLinkStoryType = {
  render: args => <OutboundLink {...args} />,
};