import * as React from 'react';
import { Calendar, DateRangeType, DayOfWeek } from '@fluentui/react';
var workWeekDays = [DayOfWeek.Tuesday, DayOfWeek.Saturday, DayOfWeek.Wednesday, DayOfWeek.Friday];
export var CalendarInlineNonContiguousWorkWeekDaysExample = function () {
    var _a = React.useState(), selectedDateRange = _a[0], setSelectedDateRange = _a[1];
    var _b = React.useState(), selectedDate = _b[0], setSelectedDate = _b[1];
    var onSelectDate = React.useCallback(function (date, dateRangeArray) {
        setSelectedDate(date);
        setSelectedDateRange(dateRangeArray);
    }, []);
    var dateRangeString = 'Not set';
    if (selectedDateRange) {
        var rangeStart = selectedDateRange[0];
        var rangeEnd = selectedDateRange[selectedDateRange.length - 1];
        dateRangeString = rangeStart.toLocaleDateString() + '-' + rangeEnd.toLocaleDateString();
    }
    return (React.createElement("div", { style: { height: '360px' } },
        React.createElement("div", null,
            "Selected date: ",
            (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.toLocaleString()) || 'Not set'),
        React.createElement("div", null,
            "Selected range: ",
            dateRangeString),
        React.createElement(Calendar, { dateRangeType: DateRangeType.WorkWeek, workWeekDays: workWeekDays, firstDayOfWeek: DayOfWeek.Monday, highlightSelectedMonth: true, showGoToToday: true, onSelectDate: onSelectDate, value: selectedDate })));
};
//# sourceMappingURL=Calendar.Inline.NonContiguousWorkWeekDays.Example.js.map