"use strict";

exports.__esModule = true;
exports.default = exports.Base = void 0;

var _react = _interopRequireDefault(require("react"));

var _index = _interopRequireDefault(require("./index"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _default = {
  title: 'Design System/SHARED COMPONENT/TagChip',
  component: _index.default,
  argTypes: {
    name: {
      control: {
        type: 'text'
      },
      description: 'Tag Name',
      table: {
        defaultValue: {
          summary: 'Gold partner'
        }
      }
    },
    color: {
      control: {
        type: 'color'
      },
      description: 'Tag color',
      table: {
        defaultValue: {
          summary: '#bb1717'
        }
      }
    },
    visible: {
      control: {
        type: 'boolean'
      },
      description: 'Tag visible',
      table: {
        defaultValue: {
          summary: true
        }
      }
    },
    active: {
      control: {
        type: 'boolean'
      },
      description: 'Tag active',
      table: {
        defaultValue: {
          summary: true
        }
      }
    }
  },
  args: {
    name: 'Gold partner',
    color: '#bb1717',
    visible: true,
    active: true
  }
};
exports.default = _default;

const Template = args => {
  /**
   * Example of a tag
   */
  const tag = {
    id: 0,
    name: args.name ? args.name : 'Gold partner',
    description: 'Partner',
    color: args.color ? args.color : '#bb1717',
    visible: args.visible ? args.visible : true,
    visibility_boost: true,
    created_at: '2019-08-24T14:15:22Z',
    active: args.active ? args.active : true,
    deleted: false
  };
  return /*#__PURE__*/_react.default.createElement("div", {
    style: {
      width: 500
    }
  }, /*#__PURE__*/_react.default.createElement(_index.default, {
    tag: tag
  }));
};

const Base = Template.bind({});
exports.Base = Base;
Base.args = {
  /* the args you need here will depend on your component */
};