import React from 'react';
import { Meta, Story } from '@storybook/react';
import { AtomLoading, ILoadingProps } from 'react/atoms/Loading';

const meta: Meta = {
  title: 'React/atoms/Loading',
  component: AtomLoading,
  argTypes: {},
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateLoading: Story<ILoadingProps> = (props) => (
  <AtomLoading {...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 Loading = TemplateLoading.bind({});

Loading.args = {
  width: '150px',
  height: '150px',
};
