'use client';
import { __rest, __assign } from '../_virtual/_tslib.js';
import React__default from 'react';
import { DayPicker } from '../packages/subframe-core/external/react-day-picker/dist/esm/DayPicker.js';
import '../packages/subframe-core/external/react-day-picker/dist/esm/useDayPicker.js';
import '../packages/subframe-core/external/react-day-picker/dist/esm/UI.js';
import { Icon } from './icon.js';

var Calendar = React__default.forwardRef(function CalendarRoot(_a, ref) {
    var classNames = _a.classNames, className = _a.className, _b = _a.showOutsideDays, showOutsideDays = _b === void 0 ? true : _b, otherProps = __rest(_a, ["classNames", "className", "showOutsideDays"]);
    return (React__default.createElement("div", { className: className, ref: ref },
        React__default.createElement(DayPicker, __assign({ components: {
                Chevron: function (props) {
                    if (props.orientation === "left") {
                        return React__default.createElement(Icon, __assign({ name: "FeatherChevronLeft" }, props));
                    }
                    return React__default.createElement(Icon, __assign({ name: "FeatherChevronRight" }, props));
                },
            }, showOutsideDays: showOutsideDays, classNames: classNames }, otherProps))));
});

export { Calendar };
//# sourceMappingURL=calendar.js.map
