import React from 'react';
import { AtomHeadline } from 'react/atoms/Typography/Headline';
import { ITypographyProps } from 'react/atoms/Typography/TypographyProps';
import { Meta, Story } from '@storybook/react';
import { theme } from 'data/dataMx';

const meta: Meta = {
  title: 'React/atoms/Typography/Headline',
  component: AtomHeadline,
  argTypes: {
    color: {
      control: {
        type: 'select'
      },
      options: theme,
    }
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateHeadline: Story<ITypographyProps> = (props) => <AtomHeadline {...props} />;

// By passing using the Args format for exported stories, you can control the props for a component for reuse in a test
// https://storybook.js.org/docs/react/workflows/unit-testing
export const Headline = TemplateHeadline.bind({});

Headline.args = {
  align: 'left',
  size: 'large',
  text: 'Display Text',
  color: 'neutral700',
  weight: 'thin',
  styles: {}
};
