import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { useRtlDiffI18n, withRTLDiff } from '../../../../.storybook/decorators/RtlDiffDecorator'; import InlineAlert from '..'; export default { component: InlineAlert, title: 'Prompts/InlineAlert/Tests', tags: ['!autodocs', '!manifest', 'deprecated'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( <> {i18n.neutral} {i18n.warning} {i18n.negative} {i18n.positive} ); }, ...withRTLDiff({ i18n: { neutral: { en: 'Neutral alert without icon', ar: 'تنبيه عادي بدون أيقونة' }, warning: { en: 'Warning alert with icon', ar: 'تنبيه تحذيري مع أيقونة' }, negative: { en: 'Negative alert with icon', ar: 'تنبيه سلبي مع أيقونة' }, positive: { en: 'Positive alert with icon and longer content that may wrap to multiple lines', ar: 'تنبيه إيجابي مع أيقونة ومحتوى أطول قد يمتد على عدة أسطر', }, }, }), };