import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator'; import ProgressBar from '..'; export default { component: ProgressBar, title: 'Content/ProgressBar/Tests', tags: ['!autodocs', '!manifest'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( <> ); }, ...withRTLDiff({ fixedRows: { heights: 'auto' }, i18n: { title1: { en: 'Send 5,550 GBP', ar: 'أرسل ٥٬٥٥٠ جنيه إسترليني' }, description: { en: 'You have 3 days to reach your goal.', ar: 'لديك ٣ أيام للوصول إلى هدفك.', }, textEnd1: { en: '200 GBP to go', ar: '٢٠٠ جنيه إسترليني متبقي' }, title2: { en: 'Total limit', ar: 'الحد الإجمالي' }, textEnd2: { en: '200 GBP remaining', ar: '٢٠٠ جنيه إسترليني متبقي' }, }, }), };