import { Meta, StoryObj } from '@storybook/react-webpack5';

import Money from './Money';
import { createSandboxStory } from '../../.storybook/components/sandbox/SandboxEditor';

export default {
  component: Money,
  title: 'Typography/Money',
} satisfies Meta<typeof Money>;

type Story = StoryObj<typeof Money>;

export const Sandbox = createSandboxStory({
  code: `<Money amount={1234.56} currency="GBP" />`,
  scope: { Money },
});

export const Basic: Story = {
  args: {
    amount: 1234.5678,
    currency: 'GBP',
  },
};
