import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { Flag } from '@wise/art'; import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator'; import AvatarView from '../../AvatarView'; import Radio from '../Radio'; export default { component: Radio, title: 'Forms/Radio/Tests', tags: ['!autodocs', '!manifest'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( <> {}} /> {}} /> } onChange={() => {}} /> } onChange={() => {}} /> ); }, ...withRTLDiff({ i18n: { standardOption: { en: 'Standard option', ar: 'خيار عادي' }, withSecondary: { en: 'Option with secondary text', ar: 'خيار مع نص ثانوي' }, withAvatar: { en: 'Option with avatar', ar: 'خيار مع صورة رمزية' }, withSecondaryAndAvatar: { en: 'Option with secondary text and avatar', ar: 'خيار مع نص ثانوي وصورة رمزية', }, secondaryDescription: { en: 'Secondary description', ar: 'وصف ثانوي' }, }, }), };