import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator'; import PromoCard from '..'; export default { component: PromoCard, title: 'Layouts/PromoCard/Tests', tags: ['!autodocs', '!manifest'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( <> ); }, ...withRTLDiff({ i18n: { linkTitle: { en: 'Link with arrow', ar: 'رابط مع سهم' }, linkDescription: { en: 'Indicator arrow icon flips in RTL.', ar: 'ينعكس سهم المؤشر في الاتجاه من اليمين إلى اليسار.', }, linkIndicator: { en: 'Free', ar: 'مجانًا' }, checkboxTitle: { en: 'Checkbox checked', ar: 'مربع اختيار محدد' }, checkboxDescription: { en: 'Check icon positioned at the end.', ar: 'أيقونة الاختيار في نهاية البطاقة.', }, checkboxIndicator: { en: 'Selected', ar: 'محدد' }, downloadTitle: { en: 'Download indicator', ar: 'مؤشر التنزيل' }, downloadDescription: { en: 'Download icon in the indicator area.', ar: 'أيقونة التنزيل في منطقة المؤشر.', }, downloadIndicator: { en: 'Download', ar: 'تنزيل' }, }, }), };