import React from 'react';
import { Meta, Story } from '@storybook/react';
import { AtomInputText, IInputTextProps } from 'native/atoms/Input/InputText';

const meta: Meta = {
  title: 'React Native/atoms/Input',
  component: AtomInputText,
  argTypes: {
    errorCallback: {table: {disable: true}},
    withIcon: {table: {disable: true}},
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateInput: Story<IInputTextProps> = (props) => <AtomInputText {...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 Input = TemplateInput.bind({});

Input.args = {
  disabled: false
};
