import e from"react";import t from"moment";import o from"./DatePickerHeader.module.scss.js";import a from"../../../../components/icon/dist/Icon/Icon.js";import r from"../../../../packages/icons/dist/react/DropdownChevronUp.js";import n from"../../../../packages/icons/dist/react/DropdownChevronDown.js";var i=function(i){var c=i.isMonthYearSelection,s=i.onToggleMonthYearPicker,m=i.hideNavigationKeys,l=i["data-testid"],d=i.ariaLabel,p=void 0===d?"Toggle select year":d,f=t(i.currentDate.valueOf()),u=f.format("MMMM"),v=f.format("YYYY");return e.createElement("div",{className:o.datePickerHeader},e.createElement("div",null,u+" "+v),!m&&e.createElement("button",{"data-testid":"".concat(l,"-year-toggle"),type:"button",className:o.button,"aria-label":p,onClick:s},e.createElement("div",{className:o.buttonContent},e.createElement(a,{iconType:"svg",icon:c?r:n,iconSize:24}))))};export{i as default};
//# sourceMappingURL=DatePickerHeader.js.map
