"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PlusSignButValueIsNegative = exports.PlusSignIfPositive = exports.RoundToWhole = exports.Normal = exports["default"] = void 0;

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

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

var _currencyFormatter = _interopRequireDefault(require("./currency-formatter.mdx"));

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

var _default = {
  component: _index.CurrencyFormatter,
  title: 'Primitives/CurrencyFormatter',
  parameters: {
    docs: {
      page: _currencyFormatter["default"]
    }
  }
};
exports["default"] = _default;

var Normal = function Normal() {
  return /*#__PURE__*/_react["default"].createElement(_index.CurrencyFormatter, {
    value: 2489500.92,
    currency: "CAD"
  });
};

exports.Normal = Normal;

var RoundToWhole = function RoundToWhole() {
  return /*#__PURE__*/_react["default"].createElement(_index.CurrencyFormatter, {
    value: 2489500.92,
    currency: "CAD",
    minimumFractionDigits: 0,
    maximumFractionDigits: 0
  });
};

exports.RoundToWhole = RoundToWhole;

var PlusSignIfPositive = function PlusSignIfPositive() {
  return /*#__PURE__*/_react["default"].createElement(_index.CurrencyFormatter, {
    value: 2489500.92,
    currency: "CAD",
    minimumFractionDigits: 0,
    maximumFractionDigits: 0,
    showPlusSign: true
  });
};

exports.PlusSignIfPositive = PlusSignIfPositive;

var PlusSignButValueIsNegative = function PlusSignButValueIsNegative() {
  return /*#__PURE__*/_react["default"].createElement(_index.CurrencyFormatter, {
    value: -2489500.92,
    currency: "CAD",
    minimumFractionDigits: 0,
    maximumFractionDigits: 0,
    showPlusSign: true
  });
};

exports.PlusSignButValueIsNegative = PlusSignButValueIsNegative;