import type { Meta, StoryObj } from '@storybook/react' import { Link } from './Link' /** Mock Next.js Link for illustrative purposes */ const NextLink = ({ children, ...props }: React.AnchorHTMLAttributes) => ( {children} ) const meta = { title: 'Navigation/Link', component: Link, argTypes: { external: { control: 'boolean' }, newTab: { control: 'boolean' }, asChild: { control: 'boolean' }, renderLink: { control: false }, onClick: { control: false }, }, args: { href: '/example', children: 'Click me', external: false, newTab: false, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: (_args) => Dashboard, } export const ExternalLink: Story = { render: (_args) => ( Visit Chainlink ), } export const NewTab: Story = { render: (_args) => ( Open PDF in new tab ), } export const WithAsChild: Story = { render: (_args) => ( Using asChild for Internal Link with Next.js Link ), }