'use strict';

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

var React = require('react');
var styles = require('./styles.js');
var utils = require('./utils.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

function DayNameRow(props) {
    const { startingDay = 'sunday', narrow = false, scrollBarWidth = 0 } = props;
    return (React__default['default'].createElement(styles.DaysOfWeek, { narrow: narrow, scrollBarWidth: scrollBarWidth }, utils.getDayNames(props.locale, startingDay).map((dayName, index) => (React__default['default'].createElement(styles.DayName, { key: `${dayName}-${index}` }, dayName)))));
}

exports.DayNameRow = DayNameRow;
