import React from 'react';
import { Meta, Story } from '@storybook/react';
import {
  MoleculeButtonBadge,
  IButtonBadgeProps,
} from 'react/molecules/ButtonBadge';

const meta: Meta = {
  title: 'React/molecules/ButtonBadge',
  component: MoleculeButtonBadge,
  argTypes: {},
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateButtonBadge: Story<IButtonBadgeProps> = (props) => (
  <MoleculeButtonBadge {...props} />
);

export const ButtonBadge = TemplateButtonBadge.bind({});

ButtonBadge.args = {
  badgeText: 'Prueba',
  badgeStatus: 'inProgress',
  image: 'https://i.ibb.co/0rW958L/cheers-2.png',
  bgColor: 'secondary',
  altTextImg: 'Test Image',
};
