var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from 'react';
import { Calendar } from 'react-date-range';
import 'react-date-range/dist/styles.css'; // main style file
import 'react-date-range/dist/theme/default.css'; // theme css file
import * as locales from 'react-date-range/dist/locale';
import { useTheme } from '@material-ui/core';
/**
* @deprecated Use UdpDateRangeSelector
*/
export const AmbientSingleDateSelector = (props) => {
    const { selectedDate, onChange, showMonthAndYearPickers = false, shownDate = new Date() } = props, other = __rest(props, ["selectedDate", "onChange", "showMonthAndYearPickers", "shownDate"]);
    const theme = useTheme();
    return (React.createElement(Calendar, Object.assign({ date: selectedDate, onChange: onChange, locale: locales['enUS'], direction: "vertical", scroll: { enabled: true }, color: theme.palette.primary.main, showMonthAndYearPickers: showMonthAndYearPickers, shownDate: shownDate }, other)));
};
//# sourceMappingURL=AmbientSingleDateSelector.js.map