import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator'; import PromoCard from '../PromoCard'; import PromoCardGroup from '../CardGroup/PromoCardGroup'; export default { component: PromoCardGroup, title: 'Layouts/PromoCardGroup/Tests', tags: ['!autodocs', '!manifest'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( ); }, ...withRTLDiff({ i18n: { digitalTitle: { en: 'Digital', ar: 'رقمية' }, digitalDescription: { en: 'A card that lives online and works anywhere.', ar: 'بطاقة تعمل عبر الإنترنت في أي مكان.', }, digitalIndicator: { en: 'Free', ar: 'مجانًا' }, standardTitle: { en: 'Standard', ar: 'عادية' }, standardDescription: { en: 'Spend and withdraw money around the world.', ar: 'أنفق أموالك واسحبها في جميع أنحاء العالم.', }, standardIndicator: { en: '7 GBP', ar: '7 جنيه إسترليني' }, ecoTitle: { en: 'Eco', ar: 'صديقة للبيئة' }, ecoDescription: { en: 'A debit card made to biodegrade.', ar: 'بطاقة خصم مصممة لتتحلل طبيعيًا.', }, ecoIndicator: { en: '9 GBP', ar: '9 جنيه إسترليني' }, }, }), };