import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator'; import Section from '..'; export default { component: Section, title: 'Content/Section/Tests', tags: ['!autodocs', '!manifest'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( <>
{i18n.defaultContent}
{i18n.paddedContent}
); }, ...withRTLDiff({ i18n: { defaultTitle: { en: 'Default section', ar: 'قسم افتراضي' }, defaultContent: { en: 'Section content without horizontal padding.', ar: 'محتوى القسم بدون حشو أفقي.', }, paddedTitle: { en: 'With horizontal padding', ar: 'مع حشو أفقي' }, paddedContent: { en: 'Section content with horizontal padding applied.', ar: 'محتوى القسم مع تطبيق الحشو الأفقي.', }, }, }), };