import React from 'react';
import { Meta, Story } from '@storybook/react';
import { Thing, Props } from './index';

const meta: Meta = {
  title: 'Hello World',
  component: Thing,
  argTypes: {
    children: {
      control: {
        type: 'text',
      },
    },
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const Template: Story<Props> = args => <Thing {...args} />;

// 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 DefaultThing = Template.bind({});

DefaultThing.args = {
  children: 'Welcome to 100ms',
};
