"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateRangeSelector = void 0;
var react_1 = __importDefault(require("react"));
var ui_i18n_1 = __importDefault(require("ui-i18n"));
var classnames_1 = __importDefault(require("classnames"));
var Typography_1 = __importDefault(require("@mui/material/Typography"));
var DateRangeSelector_1 = require("../../../../../DateRangeSelector");
var styles_1 = require("../../styles");
var DateRangeSelector = function (_a) {
    var value = _a.value, onChange = _a.onChange;
    var styles = (0, styles_1.useStyles)();
    return (react_1.default.createElement("div", { className: styles.selectorWrapper, "data-reltio-id": "date-range-selector" },
        react_1.default.createElement(Typography_1.default, { className: (0, classnames_1.default)(styles.filterSubtitle, styles.labels), variant: 'subtitle1' }, ui_i18n_1.default.text('Date')),
        react_1.default.createElement(DateRangeSelector_1.DateRangeSelector, { value: value, onChange: onChange })));
};
exports.DateRangeSelector = DateRangeSelector;
