"use strict";

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

var _react2 = require("@storybook/react");

var _data = require("../../../storybook/data");

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

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

(0, _react2.storiesOf)('Web|Table', module).add('pagination', function () {
  return _react.default.createElement(_index.Pagination, {
    list: _data.paginationList,
    headerRowTemplate: _react.default.createElement(_index.Row, {
      isHeader: true
    }, _react.default.createElement(_index.Cell, null, "age"), _react.default.createElement(_index.Cell, null, "sex"), _react.default.createElement(_index.Cell, null, "location")),
    contentRowTemplate: function contentRowTemplate(row, index) {
      var age = row.age,
          sex = row.sex,
          location = row.location;
      return _react.default.createElement(_index.Row, {
        key: index
      }, _react.default.createElement(_index.Cell, {
        title: age
      }), _react.default.createElement(_index.Cell, {
        title: sex
      }), _react.default.createElement(_index.Cell, {
        title: location
      }));
    }
  });
});