import type { Meta, StoryObj } from '@storybook/react'; import { Money } from './Money'; const meta: Meta = { title: 'Data/Money', component: Money, argTypes: { value: { control: 'number' }, currency: { control: 'text' }, locale: { control: 'text' }, signDisplay: { control: 'select', options: ['auto', 'always', 'never'], }, }, }; export default meta; type Story = StoryObj; export const Rubles: Story = { args: { value: 1234.56, currency: 'RUB', locale: 'ru-RU', }, }; export const Dollars: Story = { args: { value: 1234.56, currency: 'USD', locale: 'en-US', }, }; export const Negative: Story = { args: { value: -500, currency: 'RUB', locale: 'ru-RU', }, }; export const WithSign: Story = { args: { value: 500, currency: 'RUB', locale: 'ru-RU', signDisplay: 'always', }, };