'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

exports.default = function (_ref) {
    var name = _ref.name,
        title = _ref.title,
        _ref$style = _ref.style,
        style = _ref$style === undefined ? {} : _ref$style;

    var styleLayout = {
        boxSizing: 'boder-box',
        display: 'inline-block',
        textAlign: 'center',
        verticalAlign: 'top',
        width: 100 / 7 + '%',
        fontSize: 12,
        lineHeight: '18px',
        padding: '6px 0'
    };

    return _react2.default.createElement(
        'span',
        {
            className: 'weekday-cell',
            title: title,
            style: _extends({}, styleLayout, style)
        },
        _react2.default.createElement(
            'span',
            {
                className: 'weekday-cell-inner',
                style: { display: 'block' }
            },
            name
        )
    );
};
//# sourceMappingURL=WeekdayCell.js.map