import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator'; import Link from '..'; export default { component: Link, title: 'Typography/Link/Tests', tags: ['!autodocs', '!manifest'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( <> {i18n.externalLink}
{i18n.largeExternalLink} ); }, ...withRTLDiff({ i18n: { externalLink: { en: 'External link with navigate-away icon', ar: 'رابط خارجي مع أيقونة الانتقال', }, largeExternalLink: { en: 'Large external link with navigate-away icon', ar: 'رابط خارجي كبير مع أيقونة الانتقال', }, }, }), };